Gitでよく使うコマンドメモ


1. ブランチ作成
  git branch (branchname)
  
2. ブランチ切替
 git checkout (branchnname)  

3. 現在のブランチ確認
 git branch
 
4. 作成したブランチのPush
  git push -u origin (branchname)


5. ブランチの削除(ローカル)
  git branch -d (branchname)

6. ブランチの削除(リモート)
  git push origin --delete (branchname)

7. タグ付け
 git tag -a (tag) -m (tag comments)
 
 ex) git tag -a v0.1.3 -m "File IO implemented."
 
8. タグのPush
  git push origin (tag)
  
  git push origin v0.1.3