Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Visual Studio 2017, I don't want to submit some .cs file changes in Git

I don’t want to submit just some .cs file changes in Visual Studio 2017, Git. I am waiting to hear from the person who made the request to continue working on some files. According to the news, I will continue coding or undo the changes I have made. But in order not to waste time waiting for that news that I need right now, I started a new job and finished it. I just want to push the .cs file I just finished.

I just want to push the Receptions.cs file to GitHub as seen in the screenshots. I don’t want to submit the ReceptionForm.cs file.

enter image description here

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

enter image description here

enter image description here

>Solution :

In the last screenshot, that’s the goal of the Stage menu item to be able to add in the staging area (also called ‘index’) only the changes you want to put in the commit you will create next.

So you can stage or unstage respectly the files you want to commit or not.

Side note: Normally git even allows you to add/stage just some parts of the changes made in a given file but if I remember well this git feature is not supported by this version of Visual Studio.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading