|
1 |
git -G "検索文字列" --all |
|
1 |
git -G "検索文字列" --all |
|
1 |
$ git fetch [リモートリポジトリ名] [リモートブランチ名] |
|
1 |
$ git checkout [リモートブランチ名] |
|
1 |
$ git checkout -b [ローカルブランチ名] [リモートリポジトリ名]/[リモートブランチ名] |
|
1 |
$ git checkout -b momiji origin/kaede |
|
1 |
git cherry-pick <rev1>..<rev2> |
rev1 は cherry-pick に含まれない。
例
|
1 |
git cherry-pick 8d9db3e..7701959 |
|
1 2 3 4 |
8d9db3e : cherry-pick に含まれない 49e5896 : cherry-pick に含まれる c21d13f : cherry-pick に含まれる 7701959 : cherry-pick に含まれる |
git submodule update などにおいて, transport 'file' not allowed が発生して失敗する。
|
1 2 3 4 5 6 7 8 9 |
$ git submodule update Cloning into 'C:/Users/JaneDoe/Projects/USO800/MainSystem/SpaceWarp'... fatal: transport 'file' not allowed fatal: clone of '//WindowsFileServer/_git/SpaceWarp' into submodule path 'C:/Users/JaneDoe/Projects/USO800/MainSystem/SpaceWarp' failed Failed to clone 'MainSystem/SpaceWarp'. Retry scheduled Cloning into 'C:/Users/JaneDoe/Projects/USO800/MainSystem/SpaceWarp'... fatal: transport 'file' not allowed fatal: clone of '//WindowsFileServer/_git/SpaceWarp' into submodule path 'C:/Users/JaneDoe/Projects/USO800/MainSystem/SpaceWarp' failed Failed to clone 'MainSystem/SpaceWarp' a second time, aborting |
|
1 |
git branch --contains <commit> |
|
1 2 3 4 5 |
$ git branch --contains * parent_branch child_branch_a child_branch_b grandchild_branch_c |

git は defalt 設定において 大文字と小文字の違いを無視する。
大文字と小文字を区別しない。
違いが無視される名前 : ファイル名、フォルダ名、ref名(ブランチ名, タグ名)
README.TXT と Readme.txt を同一ファイルとみなす。
|
1 |
$ git config --local core.ignoreCase true |
README.TXT と Readme.txt を異なるファイルとみなす。
|
1 |
$ git config --local core.ignoreCase false |
gitでリモートリポジトリにアクセスする(pullやpushをする)と次のようなワーニングメッセージが表示される。
|
1 2 3 4 5 6 7 |
warning: git-credential-manager-core was renamed to git-credential-manager warning: see https://aka.ms/gcm/rename for more information warning: git-credential-manager-core was renamed to git-credential-manager warning: see https://aka.ms/gcm/rename for more information From https://example.com/example.git * branch master -> FETCH_HEAD Already up to date. |
|
1 2 3 4 5 6 7 8 9 10 11 12 |
* text=auto *.c text eol=crlf *.h text eol=crlf *.s text eol=crlf *.S text eol=crlf *.asm text eol=crlf *.cpp text eol=crlf *.hpp text eol=crlf *.csv text eol=crlf *.py text eol=crlf *.xls binary *.xlsm binary |