How to make Git use the editor of our own choice for commits

0 votes

Hi Guys,

I am new to the version control tool Git. I am not comfortable with the default editor that git used. How can I use the editor of our own choice for commits?

Dec 23, 2020 in Git & GitHub by akhtar
• 38,230 points
365 views

1 answer to this question.

0 votes

Hi@akhtar,

You can set the editor name in the Git config file. There are two ways to set the editor's name as shown below.

Set core.editor in your Git config: git config --global core.editor "vim"
Set the GIT_EDITOR environment variable: export GIT_EDITOR=vim
answered Dec 23, 2020 by MD
• 95,440 points

Related Questions In Git & GitHub

0 votes
1 answer
0 votes
2 answers

How to view the nested workflow of a local git repository?

The closest way to view branches in ...READ MORE

answered Aug 2, 2019 in Git & GitHub by Sirajul
• 59,230 points
1,279 views
0 votes
1 answer

How to change the URL for a remote Git repository?

Hi@akhtar, You can use the git remote command ...READ MORE

answered Nov 21, 2020 in Git & GitHub by MD
• 95,440 points
823 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
3,459 views
+2 votes
1 answer
0 votes
1 answer

How to view git logs of one user's commits?

Hi@akhtar, You can use the git log command ...READ MORE

answered Sep 4, 2020 in Git & GitHub by MD
• 95,440 points
1,939 views
0 votes
1 answer

How to stash untracked files of the current working directory in Git?

Hi@akhtar, In order to stash untracked files, add ...READ MORE

answered Nov 20, 2020 in Git & GitHub by MD
• 95,440 points
15,146 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP