1. Add a remote repository
$ git remote add [shortname] [url]
$ Git remote add origin https://github.com/Mike199201/GitFile #origin warehouse named
2. push data to a remote warehouse
$ git push [remote-name] [branch-name]
$ Git push origin master # push data to a remote repository origin master branch
3. fetch data from a remote repository
$ git fetch [remote-name]
4. Check the remote repository information
$ git remote show [remote-name]
5. Remote Warehouse delete, and rename
$ Git remote rename origin pb # the name changed to pb for the origin of the warehouse
$ Git remote rm origin # delete a remote repository origin