6, Git remote repository management

The purpose of using a remote repository

Role: Backup; code-sharing centralized management

Now new step: git push

Others, like the operation code git above, first fork (clone) is modified, and then pull request

Then you must first download a remote repository in native code, and then modify

Git cloning operation

Objective: The remote repository (github corresponding item) to a local

Code

git clone warehouse address

The origin of the warehouse address: Address in the picture above is copied

 

We can now operate in the local repository, and then submitted to a remote repository

Workspace -> staging area -> remote repository

According to local synchronized to a remote repository

git push: It is said that the commit command will let you enter the account password, but this time the local had memorized remote warehouse account and password, visit the website to find the warehouse, refresh will see the file has been submitted to a remote repository

Question: Why can not synchronize or do not have permission

  The requested URL returned error:403 Forbidden while accessing

 

Adding to the remote repository, in fact, the local repository .git file synchronization information to a remote repository

Add data to a remote repository, to download, edit, add to the buffer, added to the local warehouse, added to the remote repository (git push)

If everyone can download, then add the warehouse will be no, so when added to set permissions

 

Set permissions according to the diagram on it

 

Guess you like

Origin www.cnblogs.com/djlindex/p/11257558.html