![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
git
qq_43427657
这个作者很懒,什么都没留下…
展开
-
gitee 上传代码
地址:https://www.toutiao.com/a6935450711446585859/转载 2021-12-08 10:00:28 · 71 阅读 · 0 评论 -
本地修改代码不要了,拉去最新代码
git强制覆盖: git fetch --all git reset --hard origin/master git pull git强制覆盖本地命令(单条执行): git fetch --all && git reset --hard origin/master && git pull 第一个是:拉取所有更新,不同步;第二个是:本地代码同步线上最新版本(会覆盖本地所有与远程仓库上同名的文件);git reset 指令把HEAD指转载 2021-10-21 17:33:21 · 238 阅读 · 0 评论 -
git push origin master To gitee.com:j-f/best-buy.git ! [rejected]报错解决办法
https://blog.csdn.net/qq_41904362/article/details/109237055转载 2020-12-22 17:17:56 · 283 阅读 · 0 评论 -
提交代码
git提交代码设置账户名和密码git config --global user.name "John Doe"$ git config --global user.email johndoe@example.comgit status //查看状态信息git add . //把内容全部添加到本地git缓存区中git commit -m "" // 注释git checkout mastergit merge origin/新建的分支git pushpull:是下拉代码,相等原创 2020-06-24 17:44:37 · 338 阅读 · 0 评论