It’s very important to know the commands behind the UI in Visual Studio, in this post I just explain the basic you need to work with Git from the command line.
The first step is to set the global settings, but first list display what its value is.
git config –global -l
This will open Unix editor, to quite that window I need to type :q +enter.
You can press i to start entering text and save by pressing esc and :wq and enter, this will commit with the message you typed. In your current state, to just come out without committing, you can do :q
If you open the file without a proper exit, it will create a swap file and you can’t open it again smoothly, you just need to delete that swap file or close the file as mention before
Navigate to the directory you want to use and type:
git clone https://github.com/youraccount/rep
This will copy all files to your local files, try to add new file and then add it using
Try to see the status using
Commit the changes
git commit -m ” your message”