這篇是留給自己的 cheatsheet,放些比較少用所以常常在忘掉的指令,或者是換電腦時會用上的設定。
Tag 相關的操作
將 local fork 更新到 upstrem 的某個被 tagged 的版本並將該標籤推上自己的 repository
git fetch upstream
git merge upstream/master V0.13.07
git push origin master
git push origin V0.13.07
Git Alias
放在 ~/.gitconfig 裡偷懶用的設定,壞處是用久了在沒有 alias 上的電腦打指令很容易打錯。
[alias]
br = branch
co = checkout
cp = cherry-pick
df = diff
st = status
commti = commit
Bash Alias
放在 ~/.bashrc 裡偷懶用的設定。
alias gti="git"
alias qgit="git"
alias gitmail="git send-email --suppress-cc=all --no-chain-reply-to --thread "