
.gitignoreに追加したファイルが反映されない場合の対処方法 ~ git rm -r –cached ~
.gitignoreの内容が反映されない gitの管理対象に含めたくないファイルやディレクトリは .gitignore ファイルに記述することで対象外とすることができるのですが、 .gitignoreファイルに追加したのに、git st ...

git commitメッセージを間違った時の修正方法
gitコマンドで コミット時にコミットメッセージだけを間違えることがよくあります。 コミットメッセージだけを修正したい場合には、以下のコマンドで簡単に修正できます。 git pushする前に実行しましょう。 git commit --ame ...

GitHubのプルリクエスト(Pull Request)でコンフリクト(Conflict)が発生した場合の解決方法 ~merge編~
GitHubでプルリクエスト(Pull Request)を発行したがコンフリクト(conflict)が発生した場合に、コンフリクトを解消するまで「Merge Pull Request」ボタンが非活性でマージが出来ません。 GitHubのPu ...

gitで追加・変更したファイルやディレクトリを取り消し方法(add前/add後/commit後/push後)
gitで追加や変更したファイルを取り消したい場合のコマンドをまとめました。 に追加・変更したファイルやディレクトリの取り消し方法 追加と更新を同時に取り消すことはできないため、追加用と更新用で別のコマンドを実行します。 ポイント 全ディレク ...

GitHubでcloneすると「Could not resolve host: github.com」のエラーが発生した場合の対処方法
GitHubを利用していて「git clone」などのコマンドを実行すると「Could not resolve host: github.com」のエラーが発生する場合があります。 エラーの原因と対処方法についてまとめました。 「Could ...