本地分支关联远端分支方法当git pull或git push时,会提示 “There is no tracking information for the current branch.” 需要显式提交/拉取或做本地关联。命令如下 Choose here javascripttypescripthtmlcssshellpythongolangjavacc++c#phprubyswiftkotlinscalarustdartelixirhaskellluaperlrsql # 显式提交/拉取 git pull <remote> <branch> # 关联远端分支 git branch --set-upstream-to=origin/<branch> 本地分支名 举例:git branch --set-upstream-to=origin/dev dev