I am trying to git push
a new branch I have been working on. This is not the first time I'm pushing to the repo (hosted on assembla) and had no issues before.
I created a new branch, committed and tried to
git push --set-upstream origin my-new-branch
,
and got this message:
fatal: my-new-branch cannot be resolved to branch.
/usr/bin/git-receive-pack:71:in `read_line': undefined method `hex' for nil:NilClass (NoMethodError)
from /usr/bin/git-receive-pack:80:in `read_split'
from /usr/bin/git-receive-pack:219:in `rewrite_refs_client_wants_to_modify'
from /usr/bin/git-receive-pack:100:in `block in start'
from /usr/lib/ruby/2.3.0/open3.rb:205:in `popen_run'
from /usr/lib/ruby/2.3.0/open3.rb:95:in `popen3'
from /usr/bin/git-receive-pack:95:in `start'
from /usr/bin/git-receive-pack:251:in `<main>'
I also tried to branch off develop
to a new branch, recreate the commits manually and pushed from there - but I'm still getting the same error.
Yet, I can still push new changes to other branches that I've created 2 days ago, from the same env. I verified, and the remote has my changes.
I'm working on -
Windows 10 VM in VirtualBox
VirtualBox: version 5.1.2
git version 2.9.0.windows.1
shell: windows Git Bash
Please let me know if additional info is required. Was not sure what might be relevant to this problem.
Thanks