简体   繁体   中英

Remove git from project xcode

在此处输入图像描述 I have created a project with git many years ago. But it doesn't contain all the files. Currently I would like to add all files of that project to git with a new account. But while trying to commit it says "The repository is locked". After doing a research I found need to remove.git folder from project so I ran rm -f.git/index.lock . But unable to remove the existing git from project. How can I delete the existing git from project.

Edit

Iam able to delete the git folder now and create a new git. But two separate repositories are create (one for the project) and other for Pods. How to create a single repository for the whole project

Best way is to remove git from the project and then re-initalize it.

rm -rf .git*

Then

git init
git add *

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