Looked around I can't seem to find the recommended template .gitignore file for Visual Studio Xamarin project. I looked here as well https://github.com/github/gitignore
Will the Visual Studio one be ok?
https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
Thx in advance.
In the Visual Studio, click Git > Settings. This opens the Options window. Navigate to Source Control > Git Repository Settings. In the Git files section, click Add (next to Ignore file).
Open Visual Studio and the solution needing an ignore file. From the top menu select Git > Settings. The above will open Visual Studio's Options with Source Control > Git Global Settings selected. From the list on the left select Git Repository Settings and then click the Add button for Ignore file.
gitignore file tells Git which files to ignore when committing your project to the GitHub repository. gitignore is located in the root directory of your repo. / will ignore directories with the name.
gitignore file is that you can commit changes and share it with others. Visual Studio 2019.
You can check gitignore.io for recommended gitignore files. Here is the one it generated for Visual Studio and Xamarin.
I will use this. It will ignore unnecessary files such as Android Resource.designer.cs
and was created by Xamarin.
https://github.com/xamarin/xamarin-forms-samples/blob/master/.gitignore
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