Skip to content

Instantly share code, notes, and snippets.

@teerasej
Last active September 8, 2016 15:41
Show Gist options
  • Save teerasej/81cee4a18f94932e94f16590b062a546 to your computer and use it in GitHub Desktop.
Save teerasej/81cee4a18f94932e94f16590b062a546 to your computer and use it in GitHub Desktop.
gitignore file for Xamarin Project

How to create gitignore in Windows and Mac (Xamarin Edition)

  1. Create gitignore.txt in root of Xamarin Solution
  2. Copy below command to gitignore.txt
  3. Open Xamarin's solution folder:
  • Windows: Hold SHIFT key, right-click on Xamarin Solution's Folder, then choose 'Open Command Window Here'
  • Mac: Drag Xamarin's solution folder, drop on Terminal app icon
  1. Run rename command:
  • Windows: ren gitignore.txt .gitignore
  • Mac: mv gitignore.txt .gitignore
#Autosave files
*~

#build
[Oo]bj/
[Bb]in/
packages/
TestResults/

# globs
Makefile.in
*.DS_Store
*.sln.cache
*.suo
*.cache
*.pidb
*.userprefs
*.usertasks
config.log
config.make
config.status
aclocal.m4
install-sh
autom4te.cache/
*.user
*.tar.gz
tarballs/
test-results/
Thumbs.db

#Mac bundle stuff
*.dmg
*.app

#resharper
*_Resharper.*
*.Resharper

#dotCover
*.dotCover
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment