Last active
December 15, 2015 08:09
-
-
Save mamor/5228314 to your computer and use it in GitHub Desktop.
Gitコマンドのメモ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# サブモジュールのリファレンスを更新 | |
$ 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