Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Ground Controller Lvl 1
Message 1 of 2

How to save an edited file through git cmd ?

I am trying to change commit author, and refer to the following Git change commit author  at stackoverflow. Now I am able to edit the file throug windows cmd:

Capture.PNG

 

Now, how am i going to execute the following changes ?

1 Reply
Commander Lvl 2
Message 2 of 2

Re: How to save an edited file through git cmd ?

Hi @jreloz,

 

Welcome to the Github Community Forum!

 

I think the editor you are using is Vi or VIm, is not so difficult to exit and save a file from there. With reference to the image you post, you can see that there is in the corner left the -- INSERT --, this is a mode of the vim editor. To exit from this mode you need to use the esc button, by doing this you enter in a mode called -- NORMAL -- mode. Now you need to do some magic with vim by type:

 

:wq

 

The : is important because takes you to the -- COMMAND -- mode, then w is use to save the file and q to exit.

Once you press enter, you execute this command and the commit will be create.

 

This may takes you out and solve the problem, if not reply here what is wrong.

 

-Gabriele-

 

Mark helpfull posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great contents!