Last active
May 10, 2018 19:09
-
-
Save veve90/c62cb1f49bc373fa15f940fd0ce4a361 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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