今日ほかちゃんに教えてもらったgitコマンド
git commit -p
選んでコミット
git branch topic/like
ブランチを作成
git branch
一覧
git checkout topic/like
移動
git branch -d topic/like
削除
git checkout -b topic/like
ブランチ作って移動
git checkout master
masterに戻る
マスターに戻って・・・
git merge topic/like
topic/likeをマスターにマージ
======
git branch -a
ブランチリモートの一覧
git push origin topic/like
リモートブランチにpush
git push origin :topic/like
リモートブランチを削除
git checkout -b topic/like origin/topic/like
ブランチをリモートにpush
git checkout -b hoge origin/hoge
リモートブランチのhogeをローカルブランチhogeに取ってくる
git tag hogehoge
hogehogeタグ設定
git push —tags
タグをpush
======
git cherry-pick hash
特定のコミットを取り込み
blog comments powered by Disqus