To fix this problem in Eclipse, open the Windows menu and select Show View / Other / Git Repositories.
From the Git Repositories tab:
- expand your local repository (注 :这个就是在那个tab里的根目录)
- right click on Remote
- click on Create Remote...
- Remote name = origin
- next to IRI press the Change button
- CTRL+SPACE on URI
- select the remote location
- press Finish
- press Save and Push
Again, from the Git Repositories tab:
- right click on origin
- select Configure Fetch...
- on Ref mapping press the Edit (Advanced)...
- press Add All Branches Spec
- select the Force Update checkbox
- press Finish
Again, from the Git Repositories tab:
- right click on your local repository
- select Properties
- press New Entry...
- enter the following two keys:
(1)
Key = branch.master.remote
Value = origin
(2)
Key = branch.master.merge
Value = refs/heads/master
本文指导如何在Eclipse中解决Git配置错误,通过创建远程仓库、配置推送权限及分支映射,确保本地仓库与远程仓库之间的正常交互。
214

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



