-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbash-cheat-sheet.txt
More file actions
21 lines (15 loc) · 1.07 KB
/
Copy pathbash-cheat-sheet.txt
File metadata and controls
21 lines (15 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Don't forget about `shellharden`, `git bisect`, and `git worktree`!
Cross-compile Go for all available platforms and architectures (in a tweet sized command):
go tool dist list | awk -F'/' '{ system("GOOS="$1" GOARCH="$2" go build your/package/name") }'
In Task, dependencies run _before_ preconditions:
https://github.com/go-task/task/blob/9ecc8fc878876a8602d2e8ed277ea5ff541ce538/task.go#L195-L209
=== The golden rule of git rebase is to never use it on public branches ===
Partial pull: Partial push:
- git rup - git push <remote> <src>:<dst>
- git merge <target> - src e.g. HEAD~3, a1b2c3
- dst == branch name
K8s flow: (https://makandracards.com/makandra/527-squash-several-git-commits-into-a-single-commit)
git remote add upstream https://github.com/kubernetes/kubernetes.git && git remote set-url --push upstream no_push
git checkout golint_pkg/auth/authorizer/abac && git rebase -i main
git push -f
Nano: toggle line comment with Ctrl+Option+Shift+3