Git常用代码
Git常用代码
-
Git全局设置:
git config --global user.name "Xuet0n9"
git config --global user.email "2864987714@qq.com" -
创建Git仓库:
git init
touch README.md
git add README.md
git commit -m "第一次记录"
git remote add origin https://gitee.com/xuet0n9/pythyon_task.git
git push -u origin master -
已有仓库:
git remot add origin https://gitee.com/xuet0n9/python_task.git
git push -u origin master -
更新云端仓库
git init
git add .
git commit -m "备注"
git push origin master
提示:输入用户名和密码(码云)
浙公网安备 33010602011771号