git tag summary of knowledge and configure an alias

Reprinted address: https: //www.liaoxuefeng.com/wiki/896043488029600/898732837407424
label management is actually filed against historical versions of it for a record in terms of submitting too
common command tag:
git Tag V1.1: In the current the default branch is to tag the most recent version of
git tag: View the name of the label
git tag version commit_id: to specify the version management to tag
git show v1: it will show specific information tag
git tag -a v0.1 -m "version 0.1 released" 1094adb: Explanatory notes to the label with
knowledge:
display in chronological order of the tags is not given, but given alphabetically by
label and always linked to a commit. If the commit both appear on the master branch; appeared on the dev branch, then on both branches can see this tag

Operating Tags:
common operation command symbol:
git Tag v0.1 -d: delete the label has been created to remember that the above operations are only locally Safely Remove
git push origin v1.0: The label pushed to the remote repository
git push origin - -tags: all the labels one-off pushed to the remote repository to
if you have all of the tags have been pushed to the remote repository, then delete the label a little trouble
1: first, delete the local
example: git tag - d v0.9 delete the local tag
2: remove the remote tag
example: git push origin: refs / tags / v0.9

Configuration Alias:
Common command symbol:
git config --global alias.st Status: The git status st configured alias git
git config --global --unset alias.st: deletes st alias out
to note is one point : global parameters are global parameters, that is, all of these commands in git repository has used this computer

Published 58 original articles · won praise 0 · Views 1297

Guess you like

Origin blog.csdn.net/a_liuren/article/details/104399265