Local data warehouse is first connected upstream github

  1. github.com individual centers to create a remote repository Repository
  2. Create a folder as a local git repository, open git bash script within the folder execute git init command
  3. Followed by the implementation git pull <origin.git>
  4. git remote add master <origin.git> 
  5. git add
  6. git commit "for the first time to submit information" -m
  7. git push --set-upstream <origin.git> master

Note : Only the first time only need the above steps associated with the remote branch and push to set the target, after the association, directly next git pull when you can pull directly git push on when you can push.

1.github.com individual centers to create a remote repository Repository

2. Create a folder as a local git repository, execute git init command to initialize within the warehouse folder, to let git hosting this warehouse

3, because it is the first execution of remote code pull pulling operation, so that execution git pull <origin.git>, after git pull to pull the remote repository, the following is also to push if no conflicts

4. Git the Add Remote Master <origin.git> associated with the remote local branch

git remote add a fixed syntax associated with the remote branches, behind the master remote branch associated required, then back <origin.git> is a remote repository

5. Perform a normal git add. Git commit -m "information" to see the specific syntax to use git --help

It is required for just 4 in the associated remote master branch git push --set-upstream <origin.git> master 6. When the first push

Guess you like

Origin www.cnblogs.com/pp2018/p/11361852.html