I am using Netbeans, and there is a feature call Push to Upstream
. When I click it I get this message:
No tracked remote branch specified for local master
Is there a way to track the remote branch in netbeans, or in the config file?
Here is my config file:
[core]
repositoryformatversion = 0
filemode = false
logallrefupdates = true
bare = false
[remote "master"]
url = https://github.com/TheColorRed/JGame.git
fetch = +refs/heads/master:refs/remotes/master/master
I don't have git
installed on my computer, but Netbeans comes with a git package to do git operations. I don't really want to download git just to run one line, so is there a way in netbeans or in the config file to track a branch?
When you're publishing a local branch. You can tell Git to track the newly created remote branch simply by using the -u flag with "git push".
Maybe my solution for this problem seems to be too easy, but I had the same error and instead of using Push to Upstream you just have to use Push for your first commit. Afterwards you can select your remote repository/branch in Netbeans.
I don't have git installed on my computer
Yet, that remains the safest solution: simply unzip the archive msysgit (it you are on windows), and do a:
git branch -u master origin/master
Even other users came to the same conclusion.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With