Add instructions to set default editor
This commit is contained in:
parent
e174325077
commit
77f2877fe5
30
README.md
30
README.md
@ -46,12 +46,12 @@ Cheatsheets: <br/>
|
|||||||
- Create new repository
|
- Create new repository
|
||||||
- README.md
|
- README.md
|
||||||
- Git ignore file
|
- Git ignore file
|
||||||
- Staging
|
- Stage
|
||||||
- Committing
|
- Commit
|
||||||
- Git push
|
- Push / pull
|
||||||
- Fork
|
- Fork
|
||||||
- Git pull request
|
- Pull request
|
||||||
- Branching
|
- Branche
|
||||||
- Merge / Rebase
|
- Merge / Rebase
|
||||||
- Undoing Things
|
- Undoing Things
|
||||||
- Amend commits
|
- Amend commits
|
||||||
@ -130,18 +130,21 @@ Configure user information for all local repositories
|
|||||||
|
|
||||||
```shell
|
```shell
|
||||||
$ git config --global user.name "[name]"
|
$ git config --global user.name "[name]"
|
||||||
```
|
# Sets the name you want attached to your commit transactions
|
||||||
Sets the name you want attached to your commit transactions
|
|
||||||
|
|
||||||
```shell
|
|
||||||
$ git config --global user.email "[email address]"
|
$ 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
|
```shell
|
||||||
$ git config --global color.ui auto
|
$ 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
|
If you want to save your https credentials run
|
||||||
```shell
|
```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)
|
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
|
### Terminal commands
|
||||||
|
|
||||||
See changes that have been made
|
See changes that have been made
|
||||||
|
Reference in New Issue
Block a user