我是git的新手。为什么在这些git命令后什么也不做?
我的叉: Fork @ https://github.com/bigopon/binding
主回购:Aurelia @ https://github.com/aurelia/binding
我的命令(以相同的顺序执行):
git clone https://github.com/bigopon/binding.git
cd binding
git remote add upstream https://github.com/aurelia/binding.git
git fetch upstream
git rebase upstream/master
我有冲突,以解决该问题后:
git add *
git commit -m "Resolved"
我得到了这些消息es:
您目前正在'36215e6'上重新设置分支'master'。 没有提交,工作目录干净
而且
git push origin master
什么都不做
更新:下面是发生了什么事:
C:\Users\Bigo\Desktop\aurelia-forks>git clone
https://github.com/bigopon/binding.git
Cloning into 'binding'...
remote: Counting objects: 4560, done.
remote: Total 4560 (delta 0), reused 0 (delta 0), pack-reused 4560R
Receiving objects: 100% (4560/4560), 4.52 MiB | 939.00 KiB/s, done.
Resolving deltas: 100% (3143/3143), done.
Checking connectivity... done.
C:\Users\Bigo\Desktop\aurelia-forks>cd binding
C:\Users\Bigo\Desktop\aurelia-forks\binding>git remote add upstream https://github.com/aurelia/binding.git
C:\Users\Bigo\Desktop\aurelia-forks\binding>git fetch upstream
remote: Counting objects: 99, done.
remote: Total 99 (delta 60), reused 60 (delta 60), pack-reused 39
Unpacking objects: 100% (99/99), done.
From https://github.com/aurelia/binding
* [new branch] master -> upstream/master
* [new tag] 1.2.1 -> 1.2.1
* [new tag] 1.1.1 -> 1.1.1
* [new tag] 1.2.0 -> 1.2.0
C:\Users\Bigo\Desktop\aurelia-forks\binding>git rebase upstream/master
First, rewinding head to replay your work on top of it...
Applying: Add self binding behavior section
Using index info to reconstruct a base tree...
M doc/article/en-US/binding-binding-behaviors.md
Falling back to patching base and 3-way merge...
Auto-merging doc/article/en-US/binding-binding-behaviors.md
CONFLICT (content): Merge conflict in doc/article/en-US/binding-binding-behaviors.md
Failed to merge in the changes.
Patch failed at 0001 Add self binding behavior section
The copy of the patch that failed is found in:
C:/Users/Bigo/Desktop/aurelia-forks/binding/.git/rebase-apply/patch
When you have resolved this problem, run "git rebase --continue".
If you prefer to skip this patch, run "git rebase --skip" instead.
To check out the original branch and stop rebasing, run "git rebase --abort".
C:\Users\Bigo\Desktop\aurelia-forks\binding>
我该怎么办吗?正如@ merlin2011在他的回答中所暗示的,我不应该在rebase期间提交
为什么你'rebase'在这里?我没有看到它的需要。 – ashmaroli
请编辑该问题,以包括当混乱发生时你期望发生的事情。 – ashmaroli
@ashmaroli我已经更新了所有输出的问题 – bigopon