Open jkuester opened 4 years ago
This seems related to https://github.com/FredrikNoren/ungit/issues/1037, but not exactly the same....
I was going to say this bothers me since I started using ungit, then I saw that past me already created #1037 which you mentioned ^^
Maybe I am missing some configuration on my end, but this does not seem to work how I would expect. I expected that when I pushed a new local branch to a remote, the "upstream" for the local branch would be set to the new remote branch. This will allow me to run a simple
git pull
command to pull changes from the remote.When using the normal git CLI you can achieve this with the
git push -u
command. So, for example, the following sequence of commands succeeds:However if I use Ungit to push the branch to the remote (via the push button), and then I try and run
git pull
from the cli, I get the following error:Setting the upstream branch when pushing a new branch to the remote would be really helpful particularly when using Ungit in combination with other git clients (e.g. the normal git cli, IDE clients, and/or scripts. In my case the offending program is the IntelliJ IDEA. If I try to use IntelliJ's built-in git client to pull the latest changes from the remote (after I pushed the branches via Ungit) I get the error mentioned above.