To fix this problem in Eclipse, open theWindowsmenu and selectShow View/Other/Git Repositories.
From the Git Repositories tab:
- expand your local repository (注 :这个就是在那个tab里的根目录)
- right click onRemote
- click onCreate Remote...
- Remote name = origin
- next toIRIpress theChangebutton
- CTRL+SPACEon URI
- select the remote location
- pressFinish
- pressSave and Push
Again, from the Git Repositories tab:
- right click onorigin
- selectConfigure Fetch...
- on Ref mapping press theEdit (Advanced)...
- pressAdd All Branches Spec
- select theForce Updatecheckbox
- pressFinish
Again, from the Git Repositories tab:
- right click on your local repository
- selectProperties
- pressNew Entry...
- enter the following two keys:
(1)
Key = branch.master.remote
Value = origin
(2)
Key = branch.master.merge
Value = refs/heads/master
本文介绍如何解决Eclipse中使用Git时遇到的“当前分支未配置拉取”问题。通过详细步骤指导用户配置远程仓库及分支映射,确保本地分支能够正确地与远程分支同步。
1709

被折叠的 条评论
为什么被折叠?



