gitの設置ファイルである`.gitconfig`では、`[includeIf]`を指定することで特定の条件の時のみconfigの設定を有効にすることができます。
この記事では、`[includeIf]`を指定したにもかかわらず、設定が有効にならない時の確認ポイントを説明します。
...
## 背景
PHPStormでは以前はIDEからGitのステージを利用できませんでしたが、PhpStorm 2020.3よりステージ機能をサポートするようになりました。
本記事では、PHPStormで新たにサポートされるようになったGitステージの機能を説明します。
## 作...
gitを使っていて、誤って`git init`コマンドでgitリポジトリを作ってしまうことが有ります。
この操作を取り消したい(=作成したローカルのgitリポジトリを削除したい)場合は、単に.gitディレクトリを削除すればよいです。
Linuxでコマンドライン...
Windowsでgitを使用していると、以下のようにOut of memoryエラーが出て処理が行えない場合があります。
```language-bash
Auto packing the repository for optimum performance. You may also
run "git gc" manually. See "git help gc" for more i...
Windows環境で、git for Windowsをインストールしたにも関わらず、curlコマンドが使えない場合、環境変数PATHの指定が間違っている可能性があります。
git for Windowsで、curl.exeはmingw64の下に入っています。
このため、"C:\Program Files\Git\usr...
gcpのCloud Source Repositories(マネージドのgitプライベートリポジトリ)で、リポジトリを作成時に、"gcloud crashed (ArgumentTypeError)"エラーが出ることがあります。
```language-bash
$ gcloud source repos create "reponame.foo"
ERROR: gclo...
gcpのCloud Source Repositories(マネージドのgitプライベートリポジトリ)を使用しているとき、`git push --all google`コマンドを実行すると、下記のエラーが出ることがあります。
```language-bash
$ git push --all google
git: 'credential-gclou...
gitで、日本語を含むファイル名がある時に`git status`コマンドを実行すると、ファイル名が正しく表示されない場合があります。
```language-bash
$ git status
On branch master
Untracked files:
(use "git add ..." to include in what will...
gitを使っていて、git addやgit pushなどのコマンドを実行したとき、以下のような'.git/index.lock': File exists.エラーが出るときがあります。
```language-bash
$ git add *
fatal: Unable to create '/home/xxx/.git/index.lock': File exists.
...