git initial operations associated records.

From the local to the remote github empty warehouse push the 
new github repository do not check the settings, preventing conflict pushed to time.
Local First git init to initialize
the work area to find some work, such as new files, etc.
git add. Submit to the buffer zone
git commit -m 'msg' into the repository
git the Add Remote Origin
git the Add Remote Origin xxxxxxx
add a remote repository address in .git / config configuration inside will change.
In the config file to add the information to the remote
first need to set up a push -u
git the Push -u Origin Master practical effect git push origin master --set-upstream

download code remote repository
git clone ssh address

git tips
git checkout -
return on a branch, it is convenient.


Guess you like

Origin www.cnblogs.com/sidianok/p/11546558.html