7.5 Git rebase reword (Renaming Old Commits)
We can see the log responce , six is renamed as six-two.txt
We can see the log responce , six is renamed as six-two.txt
git show commands: To see latest commit info with changes(diff) on old to new files git show To see specific commit info with changes(diff) on
Commit history with information git log Commit history with information in one line git log –oneline Here some more commands for filtering the log responce:
Git commit : Single line commit Git commit -m “commit name” Commit with large information(editor opens) git commit or git commit -v Commiting Modified, Tracked
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