命令行指令
Git 全局设置
git config --global user.name "cqu2003" git config --global user.email "[email protected]"
创建新版本库
git clone [email protected]:cqu2003/demo.git cd demo touch README.md git add README.md git commit -m "add README" git push -u origin master
已存在的文件夹或 Git 仓库
cd existing_folder git init git remote add origin [email protected]:cqu2003/demo.git git add . git commit git push -u origin master
原文地址:https://www.cnblogs.com/janken/p/11563915.html
时间: 2024-10-12 14:19:55