不能用EGit推上游 [英] can't push upstream using EGit
问题描述
我的配置是:
[remoteorigin]
fetch = refs / heads / *:refs / remotes / origin / *
push = refs / heads / *:refs / remotes / origin / *
本地分支是master
远程跟踪分支是origin / master
当我推,它出来原始/主:主[最新]。实际上远程分支不是最新的。如果我配置错误的方式,我会漫步。
有时我改变不同的配置,我会得到创建一个新的分支(这是错误的,因为我只是推一些提交)或拒绝 - 不快进(这是奇怪的,因为我是远程存储库的唯一用户,我已经在推送之前已经获取)
在我成功上传到上游之后,像0.3.9版本,我继续在本地更改我的代码,并提交一个版本0.5.0。此提交应基于0.3.9版本。我不知道为什么这就是为什么我每次都要合并,有时合并使我的代码凌乱。
I use EGit in eclipse to pull and push.
my config is:
[remote "origin"]
fetch = refs/heads/*:refs/remotes/origin/*
push = refs/heads/*:refs/remotes/origin/*
local branch is master Remote Tracking branch is origin/master
when I do push, it comes out "origin/master:master[up to date]". Actually the remote branch is not up to date. I wander if I configure the wrong way.
Sometimes I change different configure, I will get either "create a new branch"(which is wrong, as I just push some commits) or "reject-no fast forward"(which is strange, as I am the only user of the remote repository and I have already fetch before push)
After I push to upstream successfully, like version 0.3.9, I continue to change my codes locally and submit a version 0.5.0. This submit should based on version 0.3.9. I don't know why. That's why I have to do merge every time, and sometimes merge make my codes messy.
这篇关于不能用EGit推上游的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!