git config --global user.name "First Last"
git config --global user.email "myname@email.com"
git config --global core.editor "nano -w"
Other editor options can be found in Setting Up Git
git config --global push.default simple
Navigate to your home directory where you want to create a directory for the git work.
For me, it is: /Users/florianmoss
cd /Users/florianmoss
Create the directories:
mkdir ds
mkdir ds/gitsample
cd ds/gitsample
pwd
my example
pwd
/Users/florianmoss
mkdir ds
mkdir ds/gitsample
cd ds/gitsample
pwd
/Users/florianmoss/ds/gitsample