git init // put this directory can become a Git repository management
git add README.md // add files to the repository
git add. // not only with a single document, but also with a wildcard, but also with the directory. A point to put all current untracked files in the directory all add up
git remote add origin [email protected]: wangjiax9 / practice.git // associated with the remote warehouse
git push -u origin master // all contents of the local repository pushed to the remote repository
---
git remote -v // Check remote repository
git fetch origin master // get the code of origin under the warehouse to the local master branch
The difference between git log -p master .. origin / master // compare local and remote branch warehouse
git merge origin / master // will merge into the local remote