Unable to git push new branch, got an undefined method `hex' for nil:NilClass (NoMethodError) error
<p>I am trying to <code>git push</code> 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.</p>

<p>I created a new branch, committed and tried to
<code>git push --set-upstream origin my-new-branch</code>, 
and got this message:</p>

<pre><code>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 `&lt;main&gt;'
</code></pre>

<p>I also tried to branch off <code>develop</code> to a new branch, recreate the commits manually and pushed from there - but I'm still getting the same error.</p>

<p>Yet, <strong>I can still push new changes to other branches</strong> that I've created 2 days ago, from the same env. I verified, and the remote has my changes.</p>

<p>I'm working on - </p>

<pre><code> Windows 10 VM in VirtualBox
 VirtualBox:  version 5.1.2
 git version 2.9.0.windows.1
 shell: windows Git Bash
</code></pre>

<p>Please let me know if additional info is required. Was not sure what might be relevant to this problem.</p>

<p>Thanks</p>