We are trying to build our repository rules for MonoTouch 5.x and can't find any good guidance on which folders and file types can be safely omitted from the repository.
If there is a general guidance document available or can anyone provide details on the following files and folders:
Folders
bin (already assuming this is not included)
build (new to MonoTouch 5)
obj (already assuming this is not included)
File Types
.pidb
.userprefs
.plist
If you want to ignore a file that you've committed in the past, you'll need to delete the file from your repository and then add a .gitignore rule for it. Using the --cached option with git rm means that the file will be deleted from your repository, but will remain in your working directory as an ignored file.
Visual Studio automatically creates a . gitignore file for the Visual Studio development environment when you create a new Git repo. In the Git Changes window, right-click any changed file that you want Git to ignore and choose Ignore this local item or Ignore this extension.
There's a .gitignore file used on the Xamarin MonoTouch Samples which would be a good set to use - https://github.com/xamarin/monotouch-samples/blob/master/.gitignore
Mostly it's .pidb, .userprefs and bin and obj folders.
You will need .plist files as these a just property lists and used to set information about your application and settings for your application.
I hope this helps,
ChrisNTR
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With