forked from Workshops/How-To-Git-Started
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
|
||||
- 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
|
||||
|
Loading…
Reference in New Issue
Block a user