git remote repository operations

View remote warehouse address

git remote -v

View the specified remote warehouse address

git remote warehouse_name

 Add new warehouse address

git remote add origin https://github.com/xue-y/email.git

 If the current branch has a tracking relationship with multiple hosts, you can use the -u option to specify a default host, so that you can use git push without any parameters later.

git push -u origin master

 delete remote tag

  git push origin :refs/tags/tagname  

 Commit the v0.1.2 tag to the git server
   git push origin v0.1.2 

 Submit all local tags to the git server at one time
  git push origin --tags 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325257988&siteId=291194637