git 初始化项目操作

命令行指令

Git 全局设置
git config --global user.name "你的名称"
git config --global user.email "[email protected]"
创建新版本库
git clone [email protected]:root/rocky-file-utils.git
cd rocky-file-utils
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]:root/rocky-file-utils.git
git add .
git commit
git push -u origin master

猜你喜欢

转载自www.cnblogs.com/songanwei/p/9120710.html