git basic commands

(1) Set the Identity

$ git config --global "John Doe"
$ git config --global

(2) Set Editor

git config --global core.editor nano

(3) Check Your settings

git config --list

(4) Initializing a Repository in an Existing Directory

git init

(5) Add Files into Existing repository

git add testfile.txt
git commit -m "Initial Commit"
(6) Clone existing repository
<pre lang="GNU">
git clone git://

Leave a Reply

Your email address will not be published. Required fields are marked *