If we cant to just print specific commit stat and information we can provide -stat option to the git show command. Also added code lines start with +plus and removed code lines starts with - minus. Added code color is green and removed code is red. We see from screenshot that added and removed code is shown clearly. $ git log -p Print Patch or Diff Information p option can be used to print path or diff of the files for the commits. If we are interested with the code diff information we need to use -p option. We can see from output that extra information like changed file, changed file count, number of lines added, number of lines deleted. We may need to print information about the commit in details. $ git log -oneline List One Commit Per Line Print Statistics If we need to only list unique part of the commit id with the note provided by author we can use -oneline option which will just print single line about each commit. The last line provides note and information about the commit.`Date` specifies when the commit occurred.`Commit` number which is a unique hash identifies the commit.We can see from output that following information about the commit provided. This will list all commit history in a interactive terminal where we can see and navigate. We will start with git log command without any parameter. ![]() In this tutorial we will examine git log command usage in detail with examples. We can use git log command in order to list, filter, view commit history in different ways. One of the most important and useful features is log or history. ![]() Git source code versioning tool provides a lot of features.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |