Cloud command operation code git

Simple command-line introductory tutorial:

Git global settings:

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

Create a git repository:

mkdir xxx
cd xxx
git init
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin [email protected]:name/xxx.git
git push -u origin master

Existing warehouse:

cd xxx
git remote add origin [email protected]:name/xxx.git
git push -u origin master

Guess you like

Origin www.cnblogs.com/chen2019/p/12511109.html