命令行说明
Git 全局设置
git config --global user.name "xuyl" git config --global user.email "[email protected]"
创建一个新的存储库
git clone [email protected]:root/GZL.git cd GZL 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 [email protected]:root/GZL.git git add . git commit -m "Initial commit" git push -u origin master
现有的 Git 存储库
cd existing_repo git remote add origin [email protected]:root/GZL.git git push -u origin --all git push -u origin --tags