1. Git基本命令
一、基本配置
git config --global user.name "Administrator"
git config --global user.email admin@example.com
二、新建仓库
git clone http://localhost/root/storm1.git
cd storm1
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master
三、将已有的文件夹变为仓库
cd existing_folder
git init
git remote add origin http://localhost/root/storm1.git
git add .
git commit -m "Initial commit"
git push -u origin master
四、将已有的Git仓库变为GitLab仓库
cd existing_repo
git remote add origin http://localhost/root/storm1.git
git push -u origin --all
git push -u origin --tags