Reputation: 6870
I am working on a tilebased RPG with a friend of mine who has to go away for weeks and we decided it was time to use version control/git. I am starting to regret that. After a few hours we managed to get it working to the point where:
Essentially we are locked with a project he can update and I cannot. I am the repo owner if that matters at all.
On trying to "Fetch from upstream":
On trying to "Pull":
On commit&push:
We are pretty much stuck now. We rather not use skype to send files, at some point we are going to be professionals and that seems too tedious.
As requested:
Upvotes: 12
Views: 15010
Reputation: 603
In such problems of branches annoying restriction, the easy way is to clean the table, rename/delete the branch and checkout from the origin branch.
But lookout! if you have things that you might want to save (and it's typical in such situation - Backup your branch don't delete it.
Upvotes: 0
Reputation: 3868
This worked for me in Eclipse IDE with EGit:
Open Window->Show view->Other->Git->Git Repositories Right click on your repo in Git Repositories view -> Properties Click "Add Entry..." button key: branch.master.remote value: origin OK Click "Add Entry..." button key: branch.master.merge value: refs/heads/master OK Right click on your repo -> Pull
Btw. I'm pulling master from remote and my local branch when pulling is also master.
Upvotes: 6
Reputation: 1323203
The error message "This branch is not configured for pull" in EGit is typical of a branch created locally and pushed.
That wouldn't set the merge section of that branch.
See "The current branch is not configured for pull No value for key branch.master.merge
found in configuration"
[branch "master"]
remote = origin
merge = refs/heads/master
To solve that, one way is to rename your current master
branch, and, in the Git Repositories
view:
Branches
" / "Switch to
" / "New Branch
"Source ref
" list, select "master
" branch (pull strategy "merge
", "Checkout new branch
" checked)finish
"The new branch should be correctly configured
Upvotes: 13