In linux, git is a version control tool in linux. I don't have large projects or servers, so basically the most useful push and so on won't be used. My program is developed by myself. Now I want to mark my version and switch between versions. One person suggested using git-tag, the following describes how to use git: Body 1: Create a database # create an empty database and create it in the current directory. git init 2: add www.2cto.com # add all files in a file or directory to the version library git add. cpp git add. /src/3: Submit # submit the current Code (to local) # [-a] submit all the code added by git in the current code library (?) # [-M "message"] with the information you submit, you will be notified of this git commit-a-m "message" 4 when switching tags in the future: tag (you must first run "Submit") # Add a tag # [-a tag-name] Add the tag name (for example,-a V1.0) # [-m "message"] Add tag Information, which is displayed in tag show, instead of displaying www.2cto.com git tag-a tag-name-m "message" # deleting a tag # [-d tag-name] deleting the tag name (such- d V1.0) git tag-d tag-name # switch to a tag # It seems that branch and tag both use the same switch git checkout tag-name