git
七个包
这个作者很懒,什么都没留下…
展开
-
Failed to connect to 127.0.0.1 port 8001: Connection refused
1,原创 2021-06-18 10:37:10 · 8378 阅读 · 0 评论 -
git pull 更新单个文件
https://stackoverflow.com/questions/3334475/git-how-to-update-checkout-a-single-file-from-remote-origin-master非常感谢!转载 2021-03-12 17:13:09 · 3038 阅读 · 0 评论 -
Failed to connect to github.com port 443: Operation timed out
大概率是vpn软件导致的,找到软件代理的端口,执行git config --global --add remote.origin.proxy "127.0.0.1:8001"注意,8001端口,换成你自己的原创 2021-03-01 16:27:31 · 3095 阅读 · 2 评论 -
fatal: Unable to create xxx(路径)/master.lock
git pull 的时候提示fatal: Unable to create xxx(路径)/master.lock不影响push和pull,但是很碍眼参考链接:https://stackoverflow.com/questions/37092231/git-push-fatal-unable-to-create-master-lock-file-exists非常感谢!把路径上的文件...转载 2019-12-30 19:02:39 · 756 阅读 · 3 评论 -
git 对工作区的常用操作
撤销操作取消 git add 的操作git reset--mixed HEAD~取消 git commit 的操作git reset --soft HEAD~强烈建议看下这个https://git-scm.com/book/zh/v2/Git-%E5%B7%A5%E5%85%B7-%E9%87%8D%E7%BD%AE%E6%8F%AD%E5%AF%86只添加部分...转载 2019-11-18 19:22:05 · 303 阅读 · 0 评论 -
git 切换远程分支
1,git checkout -b test origin/test//把远程test分支同步到新建的本地test分支上2,有一次报了一个错误fatal: Cannot update paths and switch to branch '4.0' at the same time.Did you intend to checkout 'origin/4.0' which ca...原创 2019-10-24 15:40:40 · 682 阅读 · 2 评论 -
remote: A default branch (e.g. master) does not yet exist for */*
1,git地址迁移了,提交的时候出现这个remote: A default branch (e.g. master) does not yet exist for be/man_misremote: Ask a project Owner or Maintainer to create a default branch:翻译:远程:be/man_mis的默认分支(例如主分支)还不存在...原创 2019-10-18 13:16:13 · 30309 阅读 · 1 评论