Previous Git Blogs
Intialize git repostiory
First Commit
Two tree architecture and Three tree architecture
Best basic practices for writing commit messages
Viewing the commit logs
Git Basic WorkFlow
What is HEAD pointer in GIT
Git Configuration
Viewing history
let update a file
naveen@naveen:/var/www/html/RND/symfony_sites/symfony_todoapp$ gedit readme.txt
I add extra line in a file "Update comment"
Lets check a status
naveen@naveen:/var/www/html/RND/symfony_sites/symfony_todoapp$ git status
Git Display
On branch master
Changes not staged for commit:
(use "git add ..." to update what will be committed)
(use "git checkout -- ..." to discard changes in working directory)
modified: readme.txt
Only add Updated file to staging
naveen@naveen:/var/www/html/RND/symfony_sites/symfony_todoapp$ git add -u
naveen@naveen:/var/www/html/RND/symfony_sites/symfony_todoapp$ git status
Git Display
On branch master
Changes to be committed:
(use "git reset HEAD ..." to unstage)
modified: readme.txt
Now see the history
naveen@naveen:/var/www/html/RND/symfony_sites/symfony_todoapp$ git log
Git Display
commit 34d195335ce1093085045cb148bb1765f4b01a79
Author: naveenkumar
Date: Wed Dec 16 11:16:07 2015 +0530
Update comment added
commit e95efc2d8e94f72f13e1b578b1d80451e8cf2ac8
Author: naveenkumar
Date: Wed Dec 16 10:49:52 2015 +0530
Readme file added
commit a67edfaa870430ae58dd6d6e8cea68f0c9a08c0a
Author: Naveen
Date: Mon Dec 14 13:44:18 2015 +0530
my initial commit
0 Comment(s)