Git从二等分提交

问题描述

我仅在该项目中使用过git add .,但是在某个地方,我开始在自己的一个子目录(称为用户)上收到奇怪的“已修改的内容,未跟踪的内容”错误。其他stackoverflow答案对我不起作用。我使用checkout返回以前的提交,但是越野车/未跟踪的子目录并未随目录的其余部分而改变。我最终对其进行了手动更改,然后运行git checkout master以确保其他所有内容都恢复了它的开始位置。

Git表示我正在平分,这不会让我犯错。我查看了stackoverflow的答案,并尝试了以下一些命令:

git pull

There is no tracking information for the current branch.
Please specify which branch you want to merge with.

git pull origin master

fatal: 'origin' does not appear to be a git repository

git branch --set-upstream-to=origin/master master

error: the requested upstream branch 'origin/master' does not exist
hint:
hint: If you are planning on basing your work on an upstream
hint: branch that already exists at the remote,you may need to
hint: run "git fetch" to retrieve it.
hint:
hint: If you are planning to push out a new local branch that
hint: will track its remote counterpart,you may want to use
hint: "git push -u" to set the upstream config as you push.

git pull --rebase

There is no tracking information for the current branch.
Please specify which branch you want to rebase against.

很抱歉,这些命令到处都是。我打算真正了解git的工作原理,但是现在我只想提交更改,以便我可以部署项目。

更新:我使用git bisect reset,从分离的头中创建了一个新分支,然后与母版合并。这保留了我所做的更改,所以现在我只需要弄清楚如何在我的提交中再次跟踪用户。 git add users仍然没有采取任何措施。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)