'git log -1' return latest
commit details.
$git log
commit 62f16b21c4c1fced843bf4fc8f2a096c1096ad15 (HEAD -> master, origin/master, origin/HEAD)
Author: krishna <krishna@abcd.com>
Date: Wed Jun 26 09:36:02 2019 +0530
Update welcome.txt
commit deb0c7cd4840bab7290c7224cae6ff2de3eadc2e
Author: krishna <krishna@abcd.com>
Date: Wed Jun 26 09:31:06 2019 +0530
Updated welcome.txt file
commit e875f7477dd696168ac2b1462950fa469a407299
Author: krishna <krishna@abcd.com>
Date: Tue Jun 25 09:23:56 2019 +0530
Update welcome.txt
commit fdf597bfb8e095a7123e7112c15162dfb2b93b86
Author: krishna <krishna@abcd.com>
Date: Mon Jun 24 14:27:31 2019 +0530
Added welcome message to welcome.txt file
commit 70d8ded0de055bfdd9cbf4adf3a624d466ed26f4
Author: krishna <krishna@abcd.com>
Date: Mon Jun 24 12:33:39 2019 +0530
Adding welcome.txt to the repository
commit e7e108876a43882832eeea65b45b86e6815e1eef
Author: krishna <krishna@abcd.com>
Date: Mon Jun 24 12:16:14 2019 +0530
Initial commit
Execute 'git log -1' to get only latest commit details.
$
$
$
$git log -1
commit 62f16b21c4c1fced843bf4fc8f2a096c1096ad15 (HEAD -> master, origin/master, origin/HEAD)
Author: krishna <krishna@abcd.com>
Date: Wed Jun 26 09:36:02 2019 +0530
No comments:
Post a Comment