Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem pushing a new branch #588

Closed
lenzip opened this issue Aug 22, 2013 · 3 comments
Closed

Problem pushing a new branch #588

lenzip opened this issue Aug 22, 2013 · 3 comments

Comments

@lenzip
Copy link
Contributor

lenzip commented Aug 22, 2013

Dear Experts,
I'm having the following problem pushing a new branch to my git repo.
If I do the following:
cmsrel CMSSW_5_3_11_patch5
cd CMSSW_5_3_11_patch5/src
cmsenv
git cms-merge-topic lenzip:cmgtools-for-VBFH2l2Q-CMSSW_5_3_11_patch5
git checkout -b cmgtools-for-VBFH2l2Q-CMSSW_5_3_11_patch5_dev
git push my-cmssw cmgtools-for-VBFH2l2Q-CMSSW_5_3_11_patch5_dev

I get:

! [rejected] cmgtools-for-VBFH2l2Q-CMSSW_5_3_11_patch5_dev -> cmgtools-for-VBFH2l2Q-CMSSW_5_3_11_patch5_dev (fetch first)
error: failed to push some refs to 'git@github.com:lenzip/cmssw.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first merge the remote changes (e.g.,
hint: 'git pull') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

However I'm sure there is no more work in that branch.
Do you have any advice how to solve this problem?
Thanks
Giulio

@ktf
Copy link
Contributor

ktf commented Aug 22, 2013

Did you use git commit --amend? What does git show in your local area tell
you?

@ktf
Copy link
Contributor

ktf commented Aug 28, 2013

Ping?

@lenzip
Copy link
Contributor Author

lenzip commented Aug 29, 2013

Hi Giulio,
thanks it is solved.
It was actually my fault, a branch with that name did exist.
Cheers
Giulio

On 08/28/2013 04:58 PM, Giulio Eulisse wrote:

Ping?


Reply to this email directly or view it on GitHub
#588 (comment).

@ktf ktf closed this as completed Oct 16, 2013
gpetruc added a commit to gpetruc/cmssw that referenced this issue Jan 4, 2016
heppy Added LHEWeights analyzer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants