Introduction
Download & install git https://git-scm.com/downloads
git config --global --list // list global configuretion (edit .gitconfig)
Configure GIT
// who is commiting
git config --global user.name "Hemant Singh"
git config --global user.email "hemant.ajax@gmail.com"
git config --global --edit (.gitconfig editing)
git config --global core.editor "C:/Program Files/Sublime Text 3/subl.exe -W"
// test global config
git config --global --list
Workflow
git init
git add --all
git commit -m "added index.html"
git push origin master
git status
git status -s ( less verbose)
git log
git log --oneline ( shorter )
git log --online -n 3 ( recent 3 commit )
Available GITHUB Options
GITHUB
Bit Bucket
GITLAB ( create your own github service by installing it )
Connecting with GITHUB ( SSH Key )
Private Key ( reside on your computer )
Public Key ( Goes to GITHUB )
// Generate SSH Key ( make sure using git bash or similar )
ssh-keygen -t rsa -C "hemant.ajax@gmail.com"
// copy content of id_rsa.pub to github -> settings -> ssh
// validate ssh key
ssh -T git@github.com
Last updated
Was this helpful?