When I clone a Git repo in Source Tree and make a commit and then go to Master branch to try and push my code to Bit Bucket, I get this error:
'git log' failed with code 128:'fatal: ambiguous argument 'origin/master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions
Please see screen shot:
https://dl.dropbox.com/u/119654/Support/Atlassian/Screen%20Shot%202012-10-09%20at%2016.39.03.png
This has been happening recently whenever I create a new repo and then initiate first commit. Seems to throw this error everytime. I'm not sure why as I haven't changed anything.
Currently running Mac 10.7.5 and Source Tree 1.5.4. and have Git 1.7.5.4 on my Mac.
Hmm, that's odd - it looks like something has happened to the definition of the remote branch 'origin/master'.
Can you try this:
Thanks that fixed it. Not sure why that happened in the first place
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This kind of thing usually only happens if someone deletes branches from the remote, or forces a push which changes commits that someone else has pulled. Beause git fetches this from the remote and stores it, if it changes it can get confused unless you prune the remote info like this. You shouldn't need to do it normally.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Strange because, I only just created this new repo and no one else is working on it. I did the first commit and then it came up with that problem. There wasn't any remote branches setup
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I still see this problem, I wasn't able to fix this by tip given by @Steve. Please suggest a workaround for this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I fixed by removing from bookmarks, opening the repo from File -> Open, and saving to bookmarks again.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This helped me. Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Worked like a charm ! File -> Open is the key !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Your upstream is gone.
Try this:
git branch --unset-upstream
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks - this fixed the issue
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is happening everytime a delete a branch, even if I don't push it to a remote.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am getting this issue, I'm using git flow and just finished with a feature branch, merged it into develop, removed my old feature branch and now get that error message everytime I change branch or load up the window with the graph it errors.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
None of this worked for me... any ideas?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I still this problem, I wasn't able to fix this by tip given by @Steve. Please suggest a workaround for this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.