git remote update origin --prune
git fetch upstream 'refs/tags/*:refs/tags/*'
git push origin --delete <branch_name>
git branch -d <branch_name>
Add the following to your ~/.ssh/config
Host *
UseKeychain yes
git commit --amend --author="Author Name <email@address.com>"
git log --follow exercise_000_initial_state/src/test/resources/README.md
Find which commits changes line 27..29 in file exercise_000_initial_state/src/test/resources/README.md
:
git blame -L27,+2 -- exercise_000_initial_state/src/test/resources/README.md
git log -S'Use the `nextExercise` command' -- exercise_000_initial_state/src/test/resources/README.md
Imagine we want to pull a branch called some-important-stuff
on a remote named upstream
. We do this as follows:
git fetch upstream some-important-stuff:some-important-stuff
git checkout some-important-stuff