Command Line Git - Everything you need to know to get started by Maksim Ivanov

Command Line Git - Everything you need to know to get started by Maksim Ivanov

Author:Maksim Ivanov
Language: eng
Format: epub


Figure 141

Here, I used a few placeholders:

%s - subject of the commit message

%h - abbreviated commit hash

%p - abbreviated parent commit hashes

%n - newline

You can find the full list of placeholders in the git log documentation.

You can see that each commit has a unique hash. Each commit, starting from the second commit, has a parent commit hash. The merge commit has two parent commit hashes.

How to Commit Changes

To commit the changes, you first need to stage them. To do it, you run the git add command:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.