git initialization submit project

Git has initialized the local project, and pushed to the distal Git repository operations
1. Create a local project, init command in the root directory of the project execution git
git the init

2. Create a git repository on the server, where the use GitHub to create a warehouse.
For example this git repository
https://github.com/ios-zhouyu/VueDemo.git

3. Perform git remote add origin, git path can get in [the] Clone or download.
Origin https://github.com/ios-zhouyu/VueDemo.git the Add Remote Git

4. pulled from remote branch master branch and combined with the local master branch.
Origin Master pull git: Master

5. The local branch submitted to the remote branch
git Push -u Origin Master

6. The add and upload an existing project submitted
git the Add -A
git the commit -m 'project initialization git'
git Push-upstream the --set origin master

Guess you like

Origin www.cnblogs.com/WalkOnMars/p/12092996.html