Skip to content

Instantly share code, notes, and snippets.

@veve90
Last active May 10, 2018 19:09
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 veve90/c62cb1f49bc373fa15f940fd0ce4a361 to your computer and use it in GitHub Desktop.
Save veve90/c62cb1f49bc373fa15f940fd0ce4a361 to your computer and use it in GitHub Desktop.
#create an aliast for squash all commits and use it
git config --global alias.squash-all '!f(){ git reset $(git commit-tree HEAD^{tree} -m "${1:-A new start}");};f'
git squash-all "First commint - one commit"
#add tag
git tag {TAG_NAME}
git push origin {BRANCH_NAME} --tags
# Liste des tags en local:
git tag -l
# Effacer le tag local
git tag -d {nom_du_tag}
#Effacer un tag "remote"
git push --delete origin tagname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment