Rather than removing the commit in question from the project history, the Git revert figures out how to invert (or reverse) the changes created by the commit, then appends a new commit containing the new inversed content. 'git revert 31416p54' How Does Git Revert Work? Here’s what the syntax would look like if you wanted to revert a Git commit called 31416p54: The Git revert command syntax is straightforward. Explain what was done and why it was done, but not how it was done.Limit the message body width to 72 characters.Place a blank line between the subject line and the body of the message.Do not place a period at the end of the subject line.Capitalize just the first letter in the subject line.Obey the 50-character limit for the subject line. Therefore, it’s essential to follow the seven accepted rules of standardized Git commit message writing: Git commit messages explain why a developer had to perform a Git revert commit to the team. Provide an informative Git commit message to explain why you needed to perform the Git revert.Enter the Git revert command (see below), including the commit ID you want to work on.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |