Skip to content

Instantly share code, notes, and snippets.

@yoandresaav
Last active December 8, 2022 21:10
Show Gist options
  • Save yoandresaav/26156053d6e2b65d41d4f1bfa9f53941 to your computer and use it in GitHub Desktop.
Save yoandresaav/26156053d6e2b65d41d4f1bfa9f53941 to your computer and use it in GitHub Desktop.
GIT

commit el ultimo a partir del cual se hace rebase,

usar solo en local, antes de subir los archivos al repositorio

git rebase -i #commit

Eliminar todas las branch locales que han sido merged sin tocar master, main y dev

git branch --merged | egrep -v "(^*|master|main|dev)" | xargs git branch -d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment