- add origin named "upstream" to the forked repo
git remote add upstream https://github.com/OWNER/REPOSITORY.git
- push the current branch, which is new
alias git-push-new-branch='git push --set-upstream origin $(git branch --show-current)'
- sync forked repo from origin
git fetch origin && git checkout main && git merge upstream/main
- clone a repo using a specific auth key
git clone [email protected]:OWNER/REPOSITORY.git --config core.sshCommand="ssh -i ~/.ssh/that-key"
- stop all running containers
alias docker-stop-all='docker stop $(docker ps -q)'