about 5 years ago
1. Intialize git repostiory
2. First Commit
3. Two tree architecture and Three tree architecture
4. Best basic practices for writing commit messages
5. Viewing the commit logs
6. Git Basic WorkFlow
7. What is HEAD pointer in GIT
8. Git Configuration
9. Viewing history
10. Updating a file and adding it to repository
naveen@naveen:/var/www/html/RND/symfony_sites/symfony_todoapp$ git log
Date: Wed Dec 16 11:16:07 2015 +0530
Update comment added
Date: Wed Dec 16 10:49:52 2015 +0530
Readme file added
Date: Mon Dec 14 13:44:18 2015 +0530
my initial commit
Most recent commit will always br on top
If I want to find out what has changed between these commits I can use
naveen@naveen:/var/www/html/RND/symfony_sites/symfony_todoapp$ git diff e95efc..34d195
Note : e95efc & 34d195 is a first 6 charcters of commit id
diff --git a/readme.txt b/readme.txt
index 2ba180a..bda49b4 100644
@@ -1 +1,2 @@
Please Read me
+MY new changes
+MY new changes this text has been added as it got + sign on front of it
always Working with SHA~1 hashes could be difficult there are other ways we could do the same
The lates commit is known as HEAD, and I can go back prevoius commit with using tilt HEAD~1 i.e one commit back from the HEAD, So we can do
naveen@naveen:/var/www/html/RND/symfony_sites/symfony_todoapp$ git diff HEAD~1..HEAD
This also works
naveen@naveen:/var/www/html/RND/symfony_sites/symfony_todoapp$ git diff HEAD~1..
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Terms of Service
| © copyright 2021 FindNerd.com. All rights reserved.
Sign up using