Remote Warehouse Usage Tutorial

  
 Using Remote Repositories

To participate in the collaboration of any Git project, you must understand how to manage remote repositories. A remote repository is a project repository hosted on the network. There may be many, some of which you can only read, and some of which can be written. When working with others to develop a project, you need to manage these remote repositories to push or pull data and share their work. Manage remote repository work, including adding remote libraries, removing obsolete remote libraries, managing various remote library branches, defining whether to track these branches, and more. In this section we will discuss the management and use of remote libraries in detail.
View current remote libraries

To see which remote repositories are currently configured, you can use the git remote command, which lists the short names of each remote library. After cloning a project, you can at least see a remote repository called origin, which Git uses by default to identify the original repository you cloned:

$ git clone git://github.com /schacon/ticgit.gitInitialized empty Git repository in /private/tmp/ticgit/.git/remote: Counting objects: 595, done.remote: Compressing objects: 100% (269/269), done.remote: Total 595 (delta 255), reused 589 (delta 253) Receiving objects: 100% (595/595), 73.31 KiB 
						
Copyright © Windows knowledge All Rights Reserved