Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 954 Bytes

git_2_setup.md

File metadata and controls

41 lines (31 loc) · 954 Bytes

Set Up

Step 1: Let Git Know Who You Are

Configure user name and email

git config --global user.name "First Last"
git config --global user.email "myname@email.com"

Configure editor of choice

git config --global core.editor "nano -w"

Other editor options can be found in Setting Up Git

Configure simple push (do this one time only)

git config --global push.default simple

Step 2. Create a Directory for Git Repos

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