Push fails in GitKraken with errormessage "Push Failed cannot read property 'fullName' of undefined"

GitGithubPull RequestGitkraken

Git Problem Overview

I was trying to push and create a pull-request from my local feature-branch, as usual, being in my feature-branch and right-clicking on the remote origin/develop -branch (I'm using Git Flow), and this error message popped out:

enter image description here

Can't find anything with that error message. Any ideas?

Git Solutions

Solution 1 - Git

I had this problem as well when there was a HEAD tag at a commit behind the current local master or origin/master.

Try double-clicking your local master (which eliminates HEAD) and then push your changes.

Note that if you do not have a local master, right-click on remote origin master and choose 'Checkout origin/master'. Then pull, commit, push your changes.

Solution 2 - Git

Going to add my tuppence here. I had a casing mismatch on a folder between a local branch and the remote.

Make sure when you create a branch that the case matches remote i.e. if your remote folder is called Task, don't create a local branch called task\1234-my-task, it must be Task\1234-my-task.

Solution 3 - Git

The fix by @notedible didn't work for me. But it led me to simply going to the command line and doing a git status

$ git status
On branch feature/RES-523
Your branch and 'origin/feature/RES-523' have diverged,
and have 13 and 2 different commits each, respectively.
  (use "git pull" to merge the remote branch into yours)
nothing to commit, working tree clean

$ git pull
From https://bitbucket.org/my-repo
 * [new branch]        feature/RES-523 -> origin/feature/RES-523
Auto packing the repository in background for optimum performance.
See "git help gc" for manual housekeeping.
Already up-to-date.

Boom! Good to go.

Solution 4 - Git

I had the same problem. My branch name had an apostrophe in it (Richie'sVersion). I created a new branch from the existing branch (essentially a copy of the existing branch) and gave it a name without an apostrophe (RichiesVersion) and this resolved the problem. Pushing the new branch worked fine.

Solution 5 - Git

This happens to me when we have branches that are mixed case and using GitKraken. If I rename to consistent casing, it works fine. In my case the GIT remote repository had, unintentionally, two branch folders one with mixed case and one with lowercase. My GitKraken matched the mixed case, but since the lower case existed, I got this error.

The resolution was to clean up the remote branch name so there was no ambiguity to the remote names, then the GitKraken error was resolved.


Solution 6 - Git

You just have to temporarily rename your branch the error appears, then push and then again rename the branch.

e.g.: branch feature/coolBranch -> feature/tmpcoolbranch (push here) -> feature/coolBranch

That's it.

Solution 7 - Git

I know this answer may not be the most popular, but I ran into this problem today and none of the above solutions worked. I finally got fed up with the GUI and after committing my changes I switched to CLI and pushed the branch from there. Git handled it without any issues. No disrespect to GitKraken- I upgraded to a Pro license because its a good tool.

Solution 8 - Git

Look like this error is pretty generic and the problem coming from GitKraken itself somehow. In my case, I can use CLI to work with git as usual but when I try to push my commit, this error appears. I try all of the solutions above and cannot solve the problem.

So I decide to remove the local folder, clone the repo again then the problem is fixed.


All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionSteve WatersView Question on Stackoverflow
Solution 1 - GitnotedibleView Answer on Stackoverflow
Solution 2 - GitgfyansView Answer on Stackoverflow
Solution 3 - GitNate RitterView Answer on Stackoverflow
Solution 4 - GitRichie WynneView Answer on Stackoverflow
Solution 5 - GitBrilldavView Answer on Stackoverflow
Solution 6 - GitMe3nTaLView Answer on Stackoverflow
Solution 7 - GitWilliam SmithView Answer on Stackoverflow
Solution 8 - GitNatechawinView Answer on Stackoverflow