Skip to content

Instantly share code, notes, and snippets.

@nvogel
Created April 6, 2023 12:02
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 nvogel/1750d1a856f75112ffbb8c956f5484dc to your computer and use it in GitHub Desktop.
Save nvogel/1750d1a856f75112ffbb8c956f5484dc to your computer and use it in GitHub Desktop.
GIT

Define Vim as Git editor

git config --global core.editor "vim"

How to squash all commit on a branch

git rebase -i --root
# On vim use :%s/pick/s/gc to squash all commit
git push --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment