You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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.
Sourcetree Version 1.9.4 (1.9.4) (update installed today)
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.
I had the issue. In my case here is what I,Ve done to solve it.
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.
- 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.
It forces git to push back the content that have not been pushed yet to LFS and regenerate the links to LFS.