ios - Naive Git setup, Is it possible to untrack files which are listed on my .gitignore? -
ios - Naive Git setup, Is it possible to untrack files which are listed on my .gitignore? -
i have made naive error while setting project. 3 developers working on 1 remote repository. while setting git never thought xcode produce non-development files , force them our remote repo. 1 time learnt after crash , fire made .gitignore
file.
.gitignore looks this, please allow me know if should edit too. (file credit goes : this question's reply given abizem)
# mac os x *.ds_store # xcode *.pbxuser *.mode1v3 *.mode2v3 *.perspectivev3 *.xcuserstate project.xcworkspace/ xcuserdata/
but question there possibilities can untrack of listed files our source control?
or
can list tracked files path , later know painful way remove 1 1 with,
git rm --cached 'file path'
something i've done few times in these situations, move of files in repository somewhere else on filesystem (except .gitignore), run:
git add together --all git commit -m "remove files"
then add together files in , run following:
git add together --all git commit -m "re-add files"
this sec add together & commit adhere gitignore file.
ios xcode osx git gitignore
Comments
Post a Comment