Help us understand the problem. What is going on with this article?

git コマンドメモ

More than 1 year has passed since last update.

1. リポジトリの状態を確認

git status

2. コミット履歴を閲覧

git log –n 10


3. コミット名変更

git commit --amend -m [修正コミット名]

3. 直前のコミット操作を取り消す

git reset –soft HEAD^

4. 指定のコミットに戻す

git reset --hard [コミットの記号]


5. 他のブランチで行った変更を取り込む

git merge [branch名]

6. リモートブランチの変更を取り込む

git pull

7. プルリクの取り消し

git push --delete origin [branch名]
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away