我正在开发一个名为 sidebar 的远程分支,像这样创建(来自我的电脑,而不是远程仓库):
$ git branch sidebar
$ git checkout sidebar
$ git push -u origin sidebar
$ git pull origin sidebar
在侧边栏分支上进行一些提交后,我将其推送到了仓库:
$ git push origin sidebar
现在似乎侧边栏已合并到主控,我不明白为什么:
$ git log --graph
* commit 3830b6e72f4249cd15c7a35e47a2
| Author: me
| Date: Mon Apr 30 16:56:28 2012 +0200
|
| re-build sidebar boxes
|
* commit e97e63b05a522e29d3ca97a509e3652d
|\ Merge: eb1ebfd ed10585
| | Author: me
| | Date: Sat Apr 28 15:54:19 2012 +0200
| |
| | Merge branch 'master' of
| |
| * commit 6495e5bd7ac12364a4a12389f58
| | Author: misterX
| | Date: Sat Apr 28 03:46:58 2012 +0200
| |
| | FB: add friend list with statistics
| |
* | commit eb89c0bbb5516b1ed795b9fc958
|/ Author: me
| Date: Sat Apr 28 15:54:08 2012 +0200
|
| add product img lens icon
你知道发生了什么事,我哪里错了吗?
编辑:也许以下可以帮助
$ git remote show origin
Password:
* remote origin
Fetch URL: user@repo
Push URL: user@repo
HEAD branch: master
Remote branches:
master tracked
sidebar tracked
Local branches configured for 'git pull':
master merges with remote master
sidebar merges with remote sidebar
Local refs configured for 'git push':
master pushes to master (local out of date)
sidebar pushes to sidebar (fast-forwardable)