1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Gitでプッシュしても、Githubに草が生えなかった

Posted at

症状

Gitでプッシュしても、Githubに草が生えない事象が発生した

・プライベートリポジトリにプッシュした

・ブランチを複数切っている

・切ったブランチにプッシュした

事象に気づかず、何日か分が禿げてしまっている。

image.png

コミット履歴には表示されてる模様

image.png

名前とメールアドレスを確認したが、ちゃんとGitに設定した名前とメールアドレスが表示された

名前とメールアドレスを以下コマンドで確認
git config user.name
git config user.email

解決方法

デフォルトブランチじゃないブランチをプッシュしても、草は生えないとのこと
デフォルトであるmainブランチに、別ブランチ分をマージしたらそのプッシュした分の草が生えてきました
マージコマンド
git checkout main           # mainブランチに切り替え
git merge ins-percel        # ins-percelの変更を取り込む
git push origin main       # GitHubに反映!🌿✨

image.png

参考

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?