0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Git初心者から中級者 ブランチ活用編

Last updated at Posted at 2019-07-03

目的

業務効率化

#ブランチの削除する方法

git branch -D hogehoge

#過去の履歴を参照する方法

git reflog

#履歴から復元する方法

git branch hogenosekai HEAD@{0}

ブランチの確認


git branch --all

ブランチ同士の差分確認


git diff master develop

ブランチAの方がBより古い扱いで差分が表示される

#参考
https://www.google.com/amp/s/www.genius-web.co.jp/blog/cat-123/git-branch-reflog-rescue.html/amp

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?