熟悉GIT版本控制工具

1 熟悉GIT版本控制工具

global setup

git config –global user.name “XXX”
git config –global user.email “XXXX”

Create a new repository
git clone https://github.com/xxx/xxx.git

进到这个目录后
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 https://github.com/xxx/xxx.git
git add .
git commit
git push -u origin master
git config –global user.name “XXX”
git config –global user.email “XXXX”

猜你喜欢

转载自blog.csdn.net/oYanYan12345678/article/details/81359919