GitHubでリポジトリの最初のpushで「fatal: ‘master’ does not appear to be a git repository」

今回はGitHubでリポジトリの最初のpushで「git push –set-upstream master master」を叩いたときに次のエラーが起きたときの対処法についてご紹介いたします。
GitHubでリポジ ...GitHubとGitLabなど複数のGitのサービスに対して鍵を使い分ける.ssh/configファイル【備忘録】

今回はGitHubとGitLabなど複数のGitのサービスに対して鍵を使い分けるための.ssh/configファイルの設定値について書こうと思います。
私自身の備忘録的な意味合いが強いです。
GitHubとGitLa ...Gitで「warning: Pulling without specifying how to reconcile divergent branches is discouraged. 」

今回はGitHubでpullを行ったときに下記のエラーが起きたときの対処法についてご紹介していこうと思います。
Gitで「warning: Pulling without specifying how to reconcile ...ssh -TでSSHの鍵を設定しているのにパスワードを聞かれるとき

今回はssh -TでSSHの鍵を設定しているのにパスワードを聞かれるときどのような原因があったのかについてご紹介していこうと思います。
GitLabで起きました。
結論から言うと凡ミスです。
ssh -T ...git stashで「needs merge unable to refresh index」

今回はgit stashのコマンドを叩いてコンフリクトが起き、コンフリクトを解消した後「〇〇(ファイル名): needs merge unable to refresh index」とエラーメッセージが出たときどう対処すれば良いのかに ...
git pullやgit fetchで「git –no-optional-locks 〜〜〜fetch origin error: cannot lock ref ○○」

今回はgit pullやgit fetchのコマンドを打ったときに下記のようなエラーが出たときの対処法についてご紹介いたします。
git pullやgit fetchで「git –no-optional-locks ...Gitのpullで指定したコミットの数だけプルする方法

今回はGitのpullで指定したコミットの数だけプルする方法についてご紹介いたします。
Gitのpullで指定したコミットの数だけプルする方法Gitのpullで指定したコミットの数だけブランチを最新にしたいときがあると思い ...
Gitのlogで指定したファイルの特定の文字列の変更内容を確認したいとき

今回はGitのlogで指定したファイルの特定の文字列の変更内容を確認したいときどのようにすれば良いのかについてご紹介いたします。
Gitのlogで指定したファイルの特定の文字列の変更内容を確認したいとき結論から言うと、次の ...
Gitで異なるサービス間のリポジトリでマージを行いたいとき

今回はGitで異なるサービス間のリポジトリでマージを行いたいときどのようにすれば良いのかについてご紹介いたします。
Gitで異なるサービス間のリポジトリでマージを行いたいとき例えば、GitHubなどサービスAのリポジトリA ...
Gitのstashで一つのファイルだけ差分を確認したいとき

今回はGitのstashで一つのファイルだけ差分を確認したいときどのようにすれば良いのかについてご紹介いたします。
Gitのstashで一つのファイルだけ差分を確認したいとき結論を書くと、
git stash li ...
Gitのstashで一部のファイルだけ適用したいとき

今回はGitのstashで一部のファイルだけ適用したいときどのようにすれば良いのかについてご紹介いたします。
Gitのstashで一部のファイルだけ適用したいとき結論を書いていくと、まずはgit stash listを使う ...
Gitで「error: path 〇〇 is unmerged」が出てマージを取り消したいとき

今回はGitを使っているときに「error: path 〇〇 is unmerged」が出てマージを取り消したいときどのようにすれば良いのかについてご紹介いたします。
Gitで「error: path 〇〇 is unmerge ...Gitで「error: The following untracked working tree files would be overwritten by merge:」

今回はGitで「error: The following untracked working tree files would be overwritten by merge:」というエラーが起きたときの対処法についてご紹介いたします ...
GitLabの特定のリポジトリのwikiの一覧を見る方法

今回はGitLabの特定のリポジトリのwikiの一覧を見る方法についてご紹介いたします。
GitLabの特定のリポジトリのwikiの一覧を見る方法ある日GitLabで作成した、もしくは既に作成されているwikiの一覧が見れ ...
-bash: gh: command not found時の対処法

今回はbashで「-bash: gh: command not found」と出た時の対処法についてご紹介いたします。
-bash: gh: command not found時の対処法GitHubからSSHでcloneを ...