Reflogs Sign in on the attendance sheet! How to Undo Things - - PowerPoint PPT Presentation

reflogs
SMART_READER_LITE
LIVE PREVIEW

Reflogs Sign in on the attendance sheet! How to Undo Things - - PowerPoint PPT Presentation

Lecture 10 Dumpster Diving in Git: Reflogs Sign in on the attendance sheet! How to Undo Things Accidental Merge How to Undo Things Fix messed up master How to Undo Things Made a commit on the wrong branch (master instead of


slide-1
SLIDE 1

Lecture 10 Dumpster Diving in Git: Reflogs

Sign in on the attendance sheet!

slide-2
SLIDE 2

How to Undo Things

  • Accidental Merge
slide-3
SLIDE 3

How to Undo Things

  • Fix messed up master
slide-4
SLIDE 4

How to Undo Things

  • Made a commit on the

wrong branch (master instead of my-feature)

slide-5
SLIDE 5

Reflogs

  • An ordered list of all of the changes to branch tips (and other

references) in the local repository.

  • Also try git log -g
slide-6
SLIDE 6

Using The Reflog to Recover History

slide-7
SLIDE 7

Using The Reflog to Recover History

  • The commit we made is now dangling
slide-8
SLIDE 8

Using The Reflog to Recover History

slide-9
SLIDE 9

Git Fsck

  • What if the reflog is deleted or garbage collected?
  • Stashes that got popped off with git stash pop or git stash

drop appear here

slide-10
SLIDE 10

Tags

slide-11
SLIDE 11

Search for a Specific Tag

slide-12
SLIDE 12

Creating and Sharing Tags

git push origin mytag to share