This kata has no setup.sh
script. Just read and follow along.
- Download at https://git-scm.com/download/win (or use Chocolatey)
- Install using the pre-selected defaults
- After installation, open Git Bash for following configuration steps
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:
git config --global user.name "John Doe"
git config --global user.email "johndoe@example.com
Sometimes Git needs you to edit a file it creates e.g. the message of a commit you create. As default, Git is configured with VIM, but that has a steep learning curve, so you might be better off 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 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"
You can set up aliases as such:
git config --global alias.lol 'log --oneline --graph --all'
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
.
More on aliases can be found in the alias kata.
-
See https://help.github.com/articles/generating-an-ssh-key for details about authenticating against SSH-enabled repositories
-
Or run
ssh-keygen
to generate a SSH key pair in%USERPROFILE%/.ssh/
:ssh-keygen -t rsa -b 4096 -C "johndoe@example.com"
This generates public/private keys named
id_rsa.pub
/id_rsa
, respectively) -
The public key
id_rsa.pub
needs to be uploaded to your repo server:- For GitHub, this is in Settings -> SSH and GPG keys
- For BitBucket server, this is in Manage Account -> SSH Keys