LoginSignup
0
0

More than 3 years have passed since last update.

【自分用メモ】Git

Last updated at Posted at 2019-02-21

特定のコミットまで戻る

$ git log //コミットidを探す
commit 5e76a65935a652f88f5280ad2ad10d7f3
Author: hoge <hoge@gmail.com>
Date:   Thu Feb 21 13:17:29 2019 +0900

    install redux

commit b1a50e1f2cd788e2960ec2c341f372110d2
Author: hoge <hoge@gmail.com>
Date:   Thu Feb 21 13:08:56 2019 +0900

    create application by create-react-app

commit e13b05391d054a72307bbe74183dcf02fc
Author: hoge <hoge@gmail.com>
Date:   Thu Feb 21 12:59:33 2019 +0900

    first commit

$ git reset --hard コミットid

ブランチ名変更

$ git branch -m 対象ブランチの名前 新しい名前

//現在いるブランチ名の変更
$ git branch -m 新しい名前

コンフリクトの解消

$ git fetch
$ git rebase -i origin/master
0
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
0
0