Git – Personal Reference


git config –global “username”

git config –global “email”

Initialize Tracking:

git init

Status of files

git status

Cloning remote repository

git clone <remote repository> <localrepositoryname>

Stage Files for Commit

git add filename / git add *.txt /

Commit Changes

git commit -m “Comments on Changes”

Files and Directories to be Ignored

.gitignore –  Create a file name .gitignore add files and directories to be ignored by git eg: Logs

Push to Remote

git push origin master

Pull to synchronize

git pull – If more than one system is used to push to the remote repository git pull helps in synchronizing