[v] 常用 git commands

基本的可以參考這篇

https://confluence.atlassian.com/bitbucketserver/basic-git-commands-776639767.html


我常用的

git init

git add

git commit -m "message"

git commit -am "message"

git push origin master

git push heroku master

git remote add origin <server>

git remote -v

git pull

git clone

git branch

git checkout -b <branchname>

git branch -d

git merge <branchname>

git status

參考資料

https://confluence.atlassian.com/bitbucketserver/basic-git-commands-776639767.html
https://gist.github.com/hofmannsven/6814451
http://zeroturnaround.com/rebellabs/git-commands-and-best-practices-cheat-sheet/