Last Updated: February 25, 2016
· ajduke
Img 2896

Basic Git commands for beginners

Basic git commands for basic simple workflow

initialize the git repo into current directory

git init

add the file into staging i.e file that needs go on next commit

git add <file-name> // adds the particular file
git add <filenames> // list separated by spaces
git add  .          // adds the all the files

check the statuses of files

git status -s 

recording file changes into repo

git commit -m "commit the file from staging"

check the history of commits

git log
Say Thanks
Filed Under