![]() Shorthand for -pretty=oneline -abbrev-commit used together. Because we've merged our changes back into master. Option values include oneline, short, full, fuller, and format (where you specify your own format). With Git, when we delete a branch, Git doesn't remove any of the commits it removes only the reference. ![]() Show only the first few characters of the SHA-1 checksum instead of all 40.ĭisplay the date in a relative format (for example, “2 weeks ago”) instead of using the full date format.ĭisplay an ASCII graph of the branch and merge history beside the log output. When you delete a branch, what happens depends on whether the branch was already merged. That’s right: The commits are still there, and you might be able to recover them. Show the list of files affected with added/modified/deleted information as well. When you delete a branch in Git, you don’t delete the commits themselves. Show the list of files modified after the commit information. ![]() Show statistics for files modified in each commit.ĭisplay only the changed/insertions/deletions line from the -stat command. Show the patch introduced with each commit. Lists all the references in the remote repository, including the branches. Lists all the remote branches with the latest commit hash and commit message. ![]() Those are only some simple output-formatting options to git log - there are many more.Ĭommon options to git log lists the options we’ve covered so far, as well as some other common formatting options that may be useful, along with how they change the output of the log command. Git allows users to use several methods for listing remote branches: git branch -r. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |