常用git命令
git init
git checkout -b main
git add README.md
git commit -m "first commit"
git remote add origin http://xxxx:3000/LYXM/gkxt_zyy_hl7.git
git branch -M main
git push -uf origin main
git init
git checkout -b main
git add README.md
git commit -m "first commit"
git remote add origin http://xxxx:3000/LYXM/gkxt_zyy_hl7.git
git branch -M main
git push -u origin main
重装系统以前git项目不能提交
git config --global --add safe.directory X:/codeXXX/LYXM/gkxt/Ly_gk_zyy
其他设置
//仅对当前仓库有效
git config --local user.email "你的名字"
git config --local user.email "你的邮箱"
//对当前用户的所有仓库有效
git config --global user.email "你的名字"
git config --global user.email "你的邮箱"
posted on 2023-05-22 22:25 zyp_java_net 阅读(20) 评论(0) 收藏 举报
浙公网安备 33010602011771号