Git action items

Warmly recommended: Super Multi IT resources, all in 798 Resource Network

Git Global Settings

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

Creating a new repository

git clone [email protected]:xianhenyuan/798blog.git
cd 798blog
touch README.md
git add README.md
git commit -m “add README”
git push -u origin master

Existing folder or Git repository

cd existing_folder
git init
git remote add origin [email protected]:xianhenyuan/798blog.git
git add .
git commit
git push -u origin master

Guess you like

Origin blog.csdn.net/xianhenyuan/article/details/92794790