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,170 points
56 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,060 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
• 58,990 points
338 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,060 points
57 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
943 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,060 points
81 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,060 points
122 views