can't push upstream using EGit

后端 未结 2 635
野的像风
野的像风 2020-12-10 22:12

I use EGit in eclipse to pull and push.

my config is:

  [remote \"origin\"]  
    fetch = refs/heads/*:refs/remotes/origin/*
    push = refs/heads/*:         


        
相关标签:
2条回答
  • 2020-12-10 22:45

    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.

    0 讨论(0)
  • 2020-12-10 22:49

    Check with Egit if you aren't in a detached HEAD mode:

    checked out branches in EGit

    If HEAD is "detached", i.e. is not pointing to the tip of a local branch but to a commit or tag, then none or several "checked-out" markers may appear in the tree, since any number of remote branch or tags may point to the currently checked out commit.
    The state you are in while your HEAD is detached is not recorded by any branch (which is natural --- you are not on any branch).

    (See "Why did git detach my head?" for probable cause, and "Git: How can I reconcile detached HEAD with master/origin?" for reconciliation).

    That is a common cause for an "up to date" message when pushing to a remote repo.

    0 讨论(0)
提交回复
热议问题