Since deleting the local branch "BranchName" by right+clicking -> Delete BranchName, I get the above error message on every command I trigger from SourceTree. Everything seems to work though.
The branch did never exist on the remote and is deleted locally. Using git from the command line is working without complains.
git branch does not list the deleted branch. I "git clean -fd". "git log" also works with no issues.
System:
OSX 10.9.2
Sourcetree Version 1.9.4 (1.9.4) (update installed today)
I could fix workaround the issue by:
- close Sourcetree window
- open Sourcetree Bookmarks view
- delete bookmark
- add bookmark again
It works as well.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Doesn't seem to be working for me on Mac
Found this, which is a the right route for a permanent fix in the source https://jira.atlassian.com/browse/SRCTREE-2355
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It works for me too . Thanks you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks this work around worked on Mac - OSx 10.11.6 & Source Tree Version 2.3.1 (69)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This worked, thanks
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.
I think that I have the same problem.
1. Have a repo where git status reports 'HEAD detached at tfs/default'
2. Add repository to Sourcetree
3. Double-click repository
4. Error encountered: 'git log' failed with code 128:'fatal: bad revision 'master''
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm seeing this also. This should have been resolved long ago at this stage.
Should not be marked as solved.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is still a problem in Sourcetree, and has been for years. I'm surprised it's still not fixed. The app just needs to switch the branch selection in the history view back to a different setting, such as "current branch", when the branch is deleted. It's also a huge problem when doing interactive rebases.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I had this issue occur recently on macOS, in what felt like out of the blue, which lead me here.
In case it's helpful for anyone else, one thing I did was run `git gc`, which gave me two errors:
The branch name here was the same as the 'fatal: bad revision [branch name]' error, so I figured they were related. In my case, the branch name specified wasn't valid (or was no longer valid?), so I just deleted it. Afterwards, I closed the SourceTree window and re-opened it to find it working again.
Weird.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I had the issue. In my case here is what I,Ve done to solve it.
CONTEXT:
It was related to certains type of files in my .gitattributes file.
The line filter "*.myext filter=lfs diff=lfs merge=lfs -text" in gitattributes file was added AFTER some ".myext" file were previously commited in the repository.
The ".myext" files were never been modified following the addition in the ".gitattributes" file.
SOLUTION:
- Clone the repository ( D:\My_Repo )
- Made a copy of all the content of the repository (excluding .git folder) in a temporary folder ( D:\My_Repo_tmp )
- Overwrite all the content of "D:\My_Repo" with the content of "D:\My_Repo_tmp"
- Commit and push to remote branch the changes detected.
OVERALL:
It forces git to push back the content that have not been pushed yet to LFS and regenerate the links to LFS.
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.