Takazudo hamalog

programming notes. mainly about JavaScript / jQuery. [@Takazudo] [takazudo@gmail.com] Hint: alt + /

cool guy

今日ほかちゃんに教えてもらったgitコマンド

2011/08/02 permalink

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

  1. sibukixxxhamalogからリブログしました
  2. layzie313hamalogからリブログしました
  3. ohmizaijuhamalogからリブログしました
  4. jun26hamalogからリブログしました
  5. sotohamalogからリブログしました
  6. hamalogの投稿です