Skip to content

Commit

Permalink
Fleshed out section one of config-git.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sofusalbertsen authored and RandomSort committed May 25, 2020
1 parent ba4aa63 commit 764469e
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions configure-git/README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,39 @@
# Git Kata: Configuring git

This kata has no `setup.sh` script. Just read and follow along.

## 1. Git Initial Configuration

Git wants to know who it should write as the committer of changes etc.
In order to do that, configure user name and user email towards git with the following commands:

1. `git config --global user.name "John Doe"`
2. `git config --global user.email "johndoe@example.com`

For the vim scared:
### Editor setup

Sometime git needs you to edit a file it creates e.g. the message of a commit you create.
As a standard, it is configured with VIM, but that has a steep learning curve, so you might be better of with another tool of yor liking:

If you want to use the cli based editor nano:
- `git config --global core.editor nano`

For the windows peeps:
- `git config --global core.editor notepad`

or alternatively:
or alternatively other tools you already are familiar with:

- `git config --global core.editor "'C:/Program Files/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin"`
- `git config --global core.editor "atom --wait"`
- `git config --global core.editor "code --wait"`

## Aliases
### Aliases

You can set up aliases as such:
* `git config --global alias.lol 'log --oneline --graph --all'`

This might be useful to you.
This might be useful to you when you look at the git graph.
Paste that into your terminal, and try it out with `git lol`.

## 2. Downloading and Installing on Windows

Expand Down

0 comments on commit 764469e

Please sign in to comment.