I created a branch called \'6796\', then I pushed it to remote, checked it out on another machine, made other edits, pushed it, then merged it with the master, and deleted it -
I just ran into a similar issue when I tried to commit to a newly created repo with a "." in it's name. I've seen several others have different issues with putting a "." in the repo name.
I just re-created the repo and
replaced "." with "-"
There may be other ways to resolve this, but this was a quick fix for me since it was a new repo.