Skip to content

Instantly share code, notes, and snippets.

@Rodrigora
Last active October 19, 2018 13:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Rodrigora/33ea6f6bfc5df707fb0c37a16376dd7d to your computer and use it in GitHub Desktop.
Save Rodrigora/33ea6f6bfc5df707fb0c37a16376dd7d to your computer and use it in GitHub Desktop.
Useful VI commands for git
# GIT REBASE
# - VI replace pick -> fixup
:%s/pick/fixup/g
# replace " x x x" -> ""
:%s/\(\s\+x\)\+/\s/g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment