1/21/2024 0 Comments Git undo commit message![]() ![]() Similarly, fixup f folds the commit down, discarding the commit's log message. Squash a commit down into the next neighbor (keeping its commit message) with s. Squash and fixupĪ lot of fun can be had in the panel with its rebasing capabilities. With staged changes in your files panel, you can amend it to any commit you selected it with A.Īmending commits earlier than the latest commit will result in lazygit doing a rebase for you. Here are some of my common actions I do in that panel: Amending commits This opens a whole word of editing commits and patches that we'll be looking into in a different section. Pressing enter again will focus the diff. This will show a list of files that have been changed, and the respective diff on the right-hand side. ![]() To display the contents of a commit, press ↵. ![]() Working with commits Navigating the commit(s)Īs with all other panels, navigate through the commits using ↓ and ↑. It offers a variety of actions in these areas, let's go through them. On the second tab, it provides an interface to the git reflog. The commits panel operates on both the commits themselves and on the objects it contains. In the above screenshot, the panel shows all recent commits of the checked out branch. The commits panel is the fourth panel from the top and thus has the hotkey 4. It also allows to work with the git reflog, a powerful way to undo certain git operations. The commits panel lists recent commits and provides extensive rebasing operations on them. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |