I'm getting this error when running "git stash"
Cannot save the current status with no other information.
Why is that?
I'm getting this error when running "git stash"
Cannot save the current status with no other information.
Why is that?
Found the solution here: Git stash fails 'error: unable to resolve reference refs/stash: No such file or directory'
rm -f .git/refs/stash .git/refs/stash.lock That fixed it
.git/refs/stash.lock as well. After that git stash started to work well.In my case, .git/refs/stash was owned by root.
Simply running chown -R <user>:<group> .git (Linux) fixed it.
Note that you might only need to chown -R <user>:<group> .git/refs/stash, though.
Replace <user> and <group> with your user name and main group.
For me,
cd .git/ sudo chmod -R 777 * sudo chown -R owner:owner * git add . && git stash Worked
You get this error sometime when you are in mid of a conflict. You will get more information if you check git status and see if you are in mid of a merge conflict resolution.
You can either abort the merge: If you don't want to consider your previous merge (you are sure and you would lose the history information associated with the merge), you can abort then using
git merge --abort Or reset your git state to original HEAD:
git reset ORIG_HEAD I hope it helps.
I solved it in Windows by right clicking on the shortcut to Git Bash and choosing "Run as administrator" before I run git stash.
I can verify that running Git Fork as administrator also solves this problem if using Git Fork to stash, so there is a good chance it will solve it in other git tools such as Git for Windows or Sourcetree.
This is an old question, but this may help Mac users.
If you are copying files from Time Machine manually, instead of restoring them through Time Machine, it'll add ACLs to everything, which can mess up your permissions.
For example, the section in this article that says "How to Fix Mac OS X File Permissions" shows that "everyone" has custom permissions, which messes it all up:
Bad permissions, from http://dreamlight.com/how-to-fix-mac-os-x-file-permissions
You need to remove the ACLs from those directories/files. This Super User answer goes into it, but here's the command:
sudo chmod -RN .
Then you can make sure your directories and files have the proper permissions. I use 750 for directories and 644 for files.