Use either of below commands to
get commit messages and id in same line
Example
git log --oneline
git log --pretty=oneline
$git log --oneline 62f16b2 (HEAD -> master, origin/master, origin/HEAD) Update welcome.txt deb0c7c Updated welcome.txt file e875f74 Update welcome.txt fdf597b Added welcome message to welcome.txt file 70d8ded Adding welcome.txt to the repository e7e1088 Initial commit $ $git log --pretty=oneline 62f16b21c4c1fced843bf4fc8f2a096c1096ad15 (HEAD -> master, origin/master, origin/HEAD) Update welcome.txt deb0c7cd4840bab7290c7224cae6ff2de3eadc2e Updated welcome.txt file e875f7477dd696168ac2b1462950fa469a407299 Update welcome.txt fdf597bfb8e095a7123e7112c15162dfb2b93b86 Added welcome message to welcome.txt file 70d8ded0de055bfdd9cbf4adf3a624d466ed26f4 Adding welcome.txt to the repository e7e108876a43882832eeea65b45b86e6815e1eef Initial commit
No comments:
Post a Comment