Git操做備忘
git
git commit 提交增長表情:https://github.com/carloscuesta/gitmoji/github
效果以下:api
新建分支,並推送到遠程,修改本地分支上游的追蹤分支:
bash
git checkout -b source git push origin source git branch --set-upstream-to=origin/source source
本地新建source分支,並和遠程source關聯(遠程是不存在的狀況下):ide
git checkout -b source origin/source
刪除遠程本地和遠程分支:blog
git push origin --delete test
給當前版本打tag並推送到遠程倉庫:
get
git tag -a v1.0.0 -m 'captain api v1.0.0' git push origin v1.0.0