我正在使用 Netbeans,并且有一个功能调用 Push to Upstream
。当我点击它时,我收到这条消息:
No tracked remote branch specified for local master
有没有办法在 netbeans 或配置文件中跟踪远程分支?
这是我的配置文件:
[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
我的电脑上没有安装 git
,但是 Netbeans 自带了一个 git 包来进行 git 操作。我真的不想下载 git 只是为了运行一行,那么在 netbeans 或配置文件中有没有办法跟踪分支?
最佳答案
也许我对这个问题的解决方案似乎太简单了,但我有同样的错误,而不是使用 Push to Upstream 你只需要使用 Push第一次提交。之后,您可以在 Netbeans 中选择您的远程存储库/分支。
关于Git 使用 netbeans 跟踪远程分支,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18157897/