Skip to content

Instantly share code, notes, and snippets.

@mamor
Last active December 15, 2015 08:09
Show Gist options
  • Save mamor/5228314 to your computer and use it in GitHub Desktop.
Save mamor/5228314 to your computer and use it in GitHub Desktop.
Gitコマンドのメモ
# サブモジュールのリファレンスを更新
$ git submodule foreach git pull origin master
# 普通にcheckoutしても元に戻らなかったファイルを以下で戻した
$ git checkout HEAD file_name
# 親を持たないブランチを作成
$ git checkout --orphan brunch_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment