添加所有的文件到索引
git add .
向本地源码库提交,会打开默认vi编辑器写 “注释”
git commit
添加远程目标为origin
git remote add origin [email protected]:viprs/Hello-World.git
把本地源码库push到Github上
git push origin master
从Github上pull到本地源码库
git pull origin master
全局设置
git config --global user.name "viprs" git config --global user.email [email protected]
提交步骤
git init git add README git commit -m ‘first commit‘ git remote add origin https://github.com/JsAaron/ProjClean.git
-u 是提示用户名、密码
git push -u origin master
时间: 2024-10-27 16:23:41