git - 在 Visual Studio Code 中禁用推送选项

标签 git visual-studio-code

我使用 Visual Studio Code 设置了 git 集成。我可以很好地提交(所以我认为我的凭据设置正确),并且我可以从命令行使用 git push

但是,由于某些原因,SyncPullPush 在 Git 部分中都被禁用(变灰)。我错过了什么?

编辑:如果重要的话,我使用的是 Ubuntu 12.04。

最佳答案

git branch --set-upstream-to origin/my_branch

或者

git branch -u origin/my_branch

关于git - 在 Visual Studio Code 中禁用推送选项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30767851/

相关文章:

git - 如何将 OpenShift 与私有(private) BitBucket 存储库连接

git - 为什么我在更新 Homebrew 时被告知要 'cd'?

linux - vscode“检测到#include 错误。请更新您的 includePath

linux - Git hooks 没有被推送到裸存储库

laravel - 如何避免自动 pull 请求中的符号链接(symbolic link)破坏?

Git global core.fileMode false 在克隆上本地覆盖

java - vscode 不识别 java 作为一种语言

git - 为什么我的 git user.name 和 user.email 神秘地被删除了?

flutter :参数格式不正确

GO,VS代码: no completion for external packages (intellisense)