6.6 Git diff
1 Track the changes of two commits git diff <commit1-sha> <commit2-sha> 2 Track the changes of two branches git diff <branch 1> < branch 2>
1 Track the changes of two commits git diff <commit1-sha> <commit2-sha> 2 Track the changes of two branches git diff <branch 1> < branch 2>
git stash commands : 1 To stash(hide) the staged files git stash 2 To stash(hide) staged/untracked file git stash -u 3 To Git Stash Save
git ignore : We can see with demo example: (i) Created gitignore folder, and moved in to it mkdir gitignore cd gitignore (ii) Created log
Remove files from Staging area (un staging) / un Tracking : git rm –cached <filename>
To see status git status To see status in short git status -s Types of Tracked files : (i) Modified Files : (ii) Un Modified
To add one file at a time Git add <file name> To add multiple files and folders git add <file1> <file2> <folder> To add all