See who changed a line (blame)
Show the author and date for lines 10-25
git blame -L 10,25 --date=short src/main.py
- tool
- git45 commands
More git commands
-
git bisect start && git bisect bad HEAD && git bisect good v1.0Run a binary search between v1.0 and HEAD to find the breaking commit
-
git diff --name-status main..feature/xList added, modified and deleted files between main and feature/x
-
git log --oneline --graph --decorate --allPrint an ASCII graph of the full history across all branches
-
git reset HEAD~1Move HEAD back one commit. Changes stay in your files but are no longer staged
-
git restore . && git clean -fdDiscard unstaged edits in tracked files and delete untracked files and directories