Pages

Sunday, March 20, 2022

Git Commands (Track your changes Using Log and diff with Example)

git log Check your commit using this command in details


.................................................................................................................................................................

Check your commit using this command (in short, just message)

.................................................................................................................................................................
If you want to see just 1 Committed history then type git log -n 1


.................................................................................................................................................................
Others Filter










.................................................................................................................................................................

 Commit history between two commit

.................................................................................................................................................................

 Others Log Formate 


















.................................................................................................................................................................

Search by commit message?



.................................................................................................................................................................

git diff Shows file differences not yet staged


git diff --staged   Shows file differences between staging and the last file version


.................................................................................................................................................................

suppose you have changed multiple files at a time. now want to see specific changes in a file




No comments:

Post a Comment