git push with git-cola failing

5.4k Views Asked by At

I started getting the following error a week ago when pushing with git-cola...I found something about a similar problem happening a lot a couple years ago but it didn't help at all.

"git push" returned exit status 128

Have you rebased/pulled lately?

Already up-to-date.

Pushing to https://github.com/slacktracer/lokapala.git
error: cannot run None: No such file or directory
fatal: could not read Username for 'https://github.com': No such device or address

When I push with the terminal it works just fine, so perhaps it is mostly a question about git-cola. Anyway, just wondering if anyone can help. I'm lost right now...

2

There are 2 best solutions below

9
On BEST ANSWER
cannot run None: No such file or directory

That would mean your editor used for the commit message isn't properly set.
Check the value of git config core.editor

fatal: could not read Username for 'https://github.com': No such device or address

Check, as in this answer, if you are not using a msysgit 1.8.5 (on Windows): more recent versions don't have this bug.

See if your config does have a user.name and user.email declared.

If https access fails consistently, try switching to ssh.

But for https, you also can create an OAut token and

git config remote.origin.url https://{token}@github.com/username/project.git
git config remote.origin.url https://{token}@github.com/slacktracer/lokapala.git
# or
git remote set-url origin https://{token}@github.com/slacktracer/lokapala.git

The OP slacktracer confirms in the comments that the issue seems limited on git-cola on lunbuntu.

  • Using git-gui could be a workaround.
  • Typing git push from the command-line allows to switch right back in any GUI.

The issue 179 can help, as well as launching git cola with:

GIT_COLA_TRACE=1 git cola
0
On

I had the same problem and just purged config files, for me just reinstalling worked. '-'

 # apt-get purge git-cola 

EDIT: In fact, installing git-gui really solved it for me.