LoginSignup
2
0

More than 5 years have passed since last update.

git コマンドメモ

Last updated at Posted at 2018-01-16

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

git status

2. コミット履歴を閲覧

git log –n 10

-nオプションで履歴の表示数を指定

3. コミット名変更

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

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

git reset –soft HEAD^

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

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

※7文字の記号みたいなやつ

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

git merge [branch名]

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

git pull

7. プルリクの取り消し

git push --delete origin [branch名]
2
0
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
2
0