Skip to content

pandabearcoder/git-history

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

(Re)Writing History with Git

Topics

  1. Fixing the last commit

commit --amend

  1. What is HEAD, and usage of ~

  2. Removing commits

reset (soft, hard)

  1. Displaying all interactions

reflog

  1. Going back to a commit that was reset

reset <commit_hash>

  1. Updating the commit message of a commit from anywhere on the logs

interactive rebase: reword

  1. Updating changes from a commit from anywhere on the logs

commit --fixup and interactive rebase: fixup

  1. Pushing re-written history to remote

push -f

About

Repository for teaching git history rewrites

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published