Use Git- remote repository

View remote repository

git remote: View a remote repository server has been configured

If you starve yourself warehouse have been cloned, it should at least be able to see origin

 

 

Adds the specified option -v, displays need to read and write using Git remote repository shorthand save URL

git remote -v

origin https://github.com/schacon/ticgit(fetch)

origin https://github.com/schacon/ticgit(push)

 

Adding a remote repository

git remote add <shortname> <url>

 

 

 

Grab and pull from a remote repository

 

git fetch [remote-name]

This command accessing a remote repository, pull data from all of you have not.

 

 

Pushed to the remote repository

git push origin master

 

 

View a remote warehouse

git remote show origin

 

 

Remove and re-naming of a remote repository

 

Will rename pb paul, you can use git remote rename:

git remote rename pb paul

git remote 

git remote rm paul

git remote 

 

Guess you like

Origin www.cnblogs.com/zhichun/p/11755157.html