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 had a similar issue when I tried to get a pull with a single quote ' in it's name.
I had to escape the pull request name:
git pull https://github.com/foo/bar namewithsingle"'"quote