From 77f2877fe535832c1f7249572c49740640da06c6 Mon Sep 17 00:00:00 2001 From: Bastian Date: Wed, 15 Jan 2020 13:56:53 +0100 Subject: [PATCH] Add instructions to set default editor --- README.md | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 9992db4..327f9a1 100644 --- a/README.md +++ b/README.md @@ -46,12 +46,12 @@ Cheatsheets:
- Create new repository - README.md - Git ignore file -- Staging -- Committing -- Git push +- Stage +- Commit +- Push / pull - Fork -- Git pull request -- Branching +- Pull request +- Branche - Merge / Rebase - Undoing Things - Amend commits @@ -130,18 +130,21 @@ Configure user information for all local repositories ```shell $ git config --global user.name "[name]" -``` -Sets the name you want attached to your commit transactions - -```shell +# Sets the name you want attached to your commit transactions $ git config --global user.email "[email address]" +# Sets the email you want attached to your commit transactions ``` -Sets the email you want attached to your commit transactions ```shell $ git config --global color.ui auto +# Enables helpful colorization of command line output ``` -Enables helpful colorization of command line output + +```shell +$ git config --global core.editor "nano" +# Sets the default editor to nano +``` + If you want to save your https credentials run ```shell @@ -151,6 +154,11 @@ Omit --global to set the identity only in this repository. Or you can add an [SSH key](https://help.github.com/en/github/authenticating-to-github/adding-a-new-ssh-key-to-your-github-account) +Check your config using +```shell +$ git config --list +``` + ### Terminal commands See changes that have been made