git submit the project to the cloud code

Submit code:

the init git
git remote warehouse Origin address the Add Remote
git pull --rebase Origin Master
git the Add -A
git the commit -m "Remarks"
git the Push -u Origin Master


Git global settings:

git config --global user.name "xxxxt"
git config --global user.email "[email protected]"

Create a git repository:

mkdir core_22_privilege_system
cd core_22_privilege_system
git init
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin 远程地址
git push -u origin master

Existing warehouse?

existing_git_repo cd
git the Add Remote Origin remote address
git push -u origin master

Guess you like

Origin www.cnblogs.com/shuaimeng/p/11482389.html