troubleshooting Question

GIT: I'm stuck. I can't add, reset or checkout. How do I get past this?

Avatar of Bruce Gust
Bruce GustFlag for United States of America asked on
6 Comments1 Solution203 ViewsLast Modified:
I'm trying to checkout a branch and I'm unable to do so because I keep being told that there are some files that are going to be overwritten and then I'm later told that I don't have permission...

It's a ball of snot.

Here's the situation...

First of all, here's my status:

The "Changes not staged for commit" aren't relevant to the work I've been doing, neither is the file that's referenced as "untracked."

If I try to checkout another branch, I get this:

b.gust@AHA-DT-BGUST2 MINGW64 /c/wamp64/www/bsmart (code-cleanup)
$ git checkout final-activity-stream
error: Your local changes to the following files would be overwritten by checkout:
Please commit your changes or stash them before you switch branches.
error: The following untracked working tree files would be overwritten by checkout:
Please move or remove them before you switch branches.

At this point, these files haven't been added or staged, correct? What I'm seeing is indicative of the files having been modified, but they've not been added let alone committed.

What do I need to do?

I can't add them:

error: open("bin/"): Permission denied
error: unable to index file 'bin/'
fatal: updating files failed

I've looked at reset and I get a permission denied.

I'm stuck.

What do I need to do?
Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros