Skip to content

Instantly share code, notes, and snippets.

@BinaryKitten
Created March 19, 2013 14:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BinaryKitten/5196587 to your computer and use it in GitHub Desktop.
Save BinaryKitten/5196587 to your computer and use it in GitHub Desktop.
---- repeat with replacements -----
!!:gs<marker>SEARCH<marker>REPLACE
eg
git checkout branchA && git pull origin branchA && git merge branchB && git push origin branchA
!!:gs/branchA/branchC
!!:gs/branchC/branchD
---- reuse arguments -----
mkdir folder/folder2/folder3
cd $_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment