visual studio tutorial - Publishing your project to a github repository removing sensitive data - microsoft studio - microsoft visual
Publishing your project to a github repository removing sensitive data
the steps in this example will use the following project structure as a demonstration
Learn Visual Studio - Visual Studio tutorial - solution explorer - Visual Studio examples - Visual Studio programs
and we intend to export it to the "GHTuts" Repository [Note that the Repo doesn't exist yet on github] but leave the "SensitiveProject" without publish as it contains some passwords, keys, etc..
First of all we make sure the source control plug in is set to "Git" in "Tools > Options > Plug-in Selection"
Learn Visual Studio - Visual Studio tutorial - plug in selection for github - Visual Studio examples - Visual Studio programs
If you can't see the "Team Explorer" tab, view it in visual studio like this
Learn Visual Studio - Visual Studio tutorial - team explorer tab - Visual Studio examples - Visual Studio programs
1.Go to your local solution folder and create a new file called ".gitignore.txt" [Note] this step is only important if you have some sensitive information in your project,otherwise, let visual studio create it for you
2.Now open the ".gitignore.txt" file and paste this in it, this is a template for ignoring common visual studio files (check the links below)
3. Now add your sensitive project folder to the ".gitignore.txt" file at any line that doesn't contain #, so just add it at the very end, and it should look something like this
Learn Visual Studio - Visual Studio tutorial - sensitive project folder - Visual Studio examples - Visual Studio programs
4. Right click on the solution and choose "Add Solution to Source Control..."
Learn Visual Studio - Visual Studio tutorial - add solution to source control - Visual Studio examples - Visual Studio programs
[Note] it might ask you to save the solution before you continue
5. Now you have a "LOCAL" git Repo on your pc , which VS will read from,but without a github Repo, and you will see a small blue lock icon next to each file in the solution that was added to git and a red circle at the ignored project
Learn Visual Studio - Visual Studio tutorial - local sensitive project in github - Visual Studio examples - Visual Studio programs
[Note] for more information about .gitignore file, check these links
Related Searches to visual studio tutorial - Publishing your project to a github repository removing sensitive data
how to upload files to github from windowsupload project to githubupload code to githubupload file to github command linehow to upload code to github in windowsgithub desktop tutorialgithub create repository command lineupload folder to githubpush to githubhow to delete a repository in githubgit add foldergithub command line tutorialmicrosoft visual studio 2010 professionalmicrosoft visual studiovisual studio 2016microsoft visual studio 2010 ultimatevisual studio downloadmicrosoft visual studio 2015visual studiosvisual studiovisual studio 2015microsoft visual studio 2010visual studio 2012visual studio 2008visual studio 2010 downloadvisual studio for macvisual studio communityvisual studio expressvisual studio 2013visual studio 2010visual studio onlinevisual studio freevisual studio 2010 expressbuy visual studiovisual studio professional with msdnvisual studio professionalvisual studio softwarevisual studio pricevisual studio provisual studio enterprisemicrosoft visual studio 2017visual studio 2008 professionalvisual studio 2010 professionallearn visual studiovisual studio test professionalvisual studio msdnvisual studio licensevisual studio tutorialmicrosoft visual studio 2017 downloadmicrosoft visual studio 2016visual studio latest versionms visual studio 2015visual studio web developervisual studio ultimate