Git使用远程合并
我一直在阅读ProGit,我想我知道应该怎么做。但我之前可能对我的疏忽做了一些奇怪的调整,可能是egit对回购协议做了不完整的更改,导致eclipse崩溃,或者我只是错过了一些东西。我现在已经放弃使用git&am,从cmd行使用git 我正在尝试从远程合并,我得到以下信息:Git使用远程合并,git,Git,我一直在阅读ProGit,我想我知道应该怎么做。但我之前可能对我的疏忽做了一些奇怪的调整,可能是egit对回购协议做了不完整的更改,导致eclipse崩溃,或者我只是错过了一些东西。我现在已经放弃使用git&am,从cmd行使用git 我正在尝试从远程合并,我得到以下信息: [root@localhost justifventures-opentaps]# git remote -v origin http://git.gitorious.org/opentaps/opentaps.git (
[root@localhost justifventures-opentaps]# git remote -v
origin http://git.gitorious.org/opentaps/opentaps.git (fetch)
origin http://git.gitorious.org/opentaps/opentaps.git (push)
[root@localhost justifventures-opentaps]# git remote show
origin
[root@localhost justifventures-opentaps]# git remote show origin
* remote origin
Fetch URL: http://git.gitorious.org/opentaps/opentaps.git
Push URL: http://git.gitorious.org/opentaps/opentaps.git
HEAD branch: master
Remote branches:
1.5M1 new (next fetch will store in remotes/origin)
dataimport new (next fetch will store in remotes/origin)
master new (next fetch will store in remotes/origin)
upgrade-1.5 new (next fetch will store in remotes/origin)
Local ref configured for 'git push':
master pushes to master (local out of date)
[root@localhost justifventures-opentaps]# git merge origin/master
fatal: 'origin/master' does not point to a commit
[root@localhost justifventures-opentaps]#
让我担心的一件事是,这个遥控器被支持为只读,所以我不确定为什么会有这样一行:
origin http://git.gitorious.org/opentaps/opentaps.git (push)
它还说:
Local ref configured for 'git push': master pushes to master (local out of date)
我不确定这是否与问题有关。我尝试过删除遥控器并再次添加它们,但这个配置似乎是一样的
希望有更多经验的人能解释我的困惑 在尝试从
origin/master
合并之前,您必须先执行git获取origin
,因为您的本地origin/master
分支已过时,甚至完全混乱。您是否执行了“git远程更新”但是?你能给我们看一下git branch-a的输出吗?谢谢我把它合并了,现在我正试图弄清楚如何将远程(推送)配置到我的生产服务器,这样我就可以推送更改,然后在推送之后使用Hudson和git插件构建/部署。毫无疑问,这是一个新问题……如果其他一切都失败了