简体   繁体   中英

How can I straighten out my Git local repository (I used XCode's Source Control)

I created what I thought was a Git repository named GitRepos.git. I have been using XCode5 to commit my changes to the local repository. This is what I see when I select Source Control in XCode 5:

在此处输入图片说明

Originally, this particular project was under Subversion (with 11 .svn files in random folders, which I attribute to XCode's Source Control problems); so I deleted all of the .svn folders and tried to create a new local Git repository. When I did this, I felt there should have been ONE trunk, not 11 of them. When I look at the SurveyorLeveling folder in Finder, there is only ONE .git folder (as seen in the image below) as it should be; I haven't a clue where all of the Trunks came from.

在此处输入图片说明

So my question is: How do I straighten this mess out?

Please see this answer ( link ) on how to move properly from svn to git. Git typically has a master, origin, and clones. You will probably need to merge any changes and checkout a new project so that you have a single svn project and then you could try the svn to git script ( link ). Hopefully that will help, if so please accept the answer otherwise provide some feedback.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM