Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
SourceTree和GitHub:重置为上一次提交后无法拉/推_Github_Atlassian Sourcetree - Fatal编程技术网

SourceTree和GitHub:重置为上一次提交后无法拉/推

SourceTree和GitHub:重置为上一次提交后无法拉/推,github,atlassian-sourcetree,Github,Atlassian Sourcetree,我在试图解决冲突时弄乱了我的存储库。一切都很好(我对Git越来越熟悉),但当我试图将当前分支重置为以前的提交时(我承认,我不知道自己到底在做什么),情况就变得糟糕了。在SourceTree中,我现在有2个提交要从GitHub中提取,10个提交要推送。当我试着拉的时候,我得到了这个: git -c diff.mnemonicprefix=false -c core.quotepath=false fetch origin git -c diff.mnemonicprefix=false -c c

我在试图解决冲突时弄乱了我的存储库。一切都很好(我对Git越来越熟悉),但当我试图将当前分支重置为以前的提交时(我承认,我不知道自己到底在做什么),情况就变得糟糕了。在SourceTree中,我现在有2个提交要从GitHub中提取,10个提交要推送。当我试着拉的时候,我得到了这个:

git -c diff.mnemonicprefix=false -c core.quotepath=false fetch origin

git -c diff.mnemonicprefix=false -c core.quotepath=false pull --no-commit origin master
From https://github.com/JnLlnd/CSVBuddy
 * branch            master     -> FETCH_HEAD


error: The following untracked working tree files would be overwritten by merge:
    TEST-TheBeatles-Tab (1).txt
    TEST-TheBeatles-Tab-EXPORT (1).txt
    TEST-TheBeatles-Tab-EXPORT.txt
    html-doc/img/review2_5_CSV Buddy_award.png
    icon/csvbuddy-16x16.png
    icon/csvbuddy-32x32.png
Please move or remove them before you can merge.

Aborting
我移动了6个文件,并试图再次拉。它似乎可以工作(没有错误消息)。然而,我仍然有迹象表明,有2拉做

如果我尝试推送10次提交,我会收到以下错误消息:

git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags origin master:master
Pushing to https://github.com/JnLlnd/CSVBuddy

To https://github.com/JnLlnd/CSVBuddy 
! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/JnLlnd/CSVBuddy'

hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Merge the remote changes (e.g. 'git pull')
hint: before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

哼。。。我想我对Git不太熟悉;-)我该怎么办?

好的。我想我明白了。在我可以按需要拉/推之前,我还有两个冲突需要解决


谢谢阅读。

好的。我想我明白了。在我可以按需要拉/推之前,我还有两个冲突需要解决。StackOverflow对新用户造成8小时的延迟后,我将回答我自己的问题。