git
Miss.ru
对技术而言:唯一不变的事情就是变化
展开
-
git使用中 error: pathspec ‘XXX‘ did not match any file(s) known to git 报错解决方法
一、报错原因本人在本地开发中,切换同事新切换的分支时:git checkout XXX会报以下错误:error: pathspec 'XXX' did not match any file(s) known to git二、解决问题1、首先看下所有分支 是否有同事的新分支git branch -a如果没看到,那么执行以下操作,这步是获取所有分支git fetch执行完会看到这样提示remote: Enumerating objects: 4, done.remote: Cou翻译 2021-09-24 09:16:45 · 5820 阅读 · 0 评论 -
报错解决git
hint: Updates were rejected because the tip of your current branch is behindhint: its remote counterpart. Integrate the remote changes (e.g.hint: 'git pull ...') before pushing again.hint: See the 'Note about fast-forwards' in 'git push --help' for deta原创 2021-09-23 13:09:15 · 174 阅读 · 0 评论 -
合并git分支代码
//从你开发分支切换到要合并的分支上git checkout ehl-cockpit-index-Hebei-AQHX//本地与远程建立链接git branch --set-upstream-to=origin/ehl-cockpit-index-Hebei-AQHX ehl-cockpit-index-Hebei-AQHXgit pullgit merge simon(分支名)(没报错的话,会出来一个东西 然后 直接 :q) 退出git push...原创 2021-09-23 12:58:18 · 88 阅读 · 0 评论 -
git克隆代码切换分支
git clone http://********.git **-b** Hebei-AQHX-car(分支名)原创 2021-09-09 14:55:11 · 290 阅读 · 0 评论 -
git解决冲突、git pull报错解决
在pull报错后 git stash git pull git stash pop 这个时候vscode解决冲突完之后执行提交即 git add . git commit -m "" git push原创 2021-09-09 14:52:17 · 230 阅读 · 0 评论