Each of them is tailored for a specific purpose (viewing history and creating commits, respectively), and omit the features not necessary for that task. Gitk and git-gui are examples of task-oriented tools. Then you can simply stage or unstage some changes, alter the commit message, and click “Commit” again to replace the old commit with a new one. You can also choose to amend the last commit by choosing the “Amend” radio button, which will update the “Staged Changes” area with the contents of the last commit. Type your message into the text box and click “Commit” to do something similar to git commit. You can stage individual hunks (or individual lines) by right-clicking in this area.Īt the bottom right is the message and action area. You can move entire files between the two states by clicking on their icons, or you can select a file for viewing by clicking on its name.Īt top right is the diff view, which shows the changes for the currently-selected file. On the left is the index unstaged changes are on top, staged changes on the bottom. ![]() It, too, is easiest to invoke from the command line: Git-gui, on the other hand, is primarily a tool for crafting commits. ![]() For example checking out a different branch or cherry pick a commit is easily done with one click. Contribute to jesseduffield/lazygit development by creating an account on GitHub. You can access many git related functions via right-click on a branch name or a commit message. In between is a collection of controls used for searching history. At the bottom is a view of the selected commit the comments and patch on the left, and a summary view on the right. The yellow dot represents HEAD, and the red dot represents changes that are yet to become a commit. On the top is something that looks a bit like the output of git log -graph each dot represents a commit, the lines represent parent relationships, and refs are shown as colored boxes. Probably one of the most useful is the -all flag, which tells gitk to show commits reachable from any ref, not just HEAD. Gitk accepts many command-line options, most of which are passed through to the underlying git log action. Whilst these two tools, used in conjunction, offer reasonable access to the power of Git, they lack integration, and functionality that other Git clients provide. gitk is a repository browser that is also written in Tcl/tk. Other great apps like git-gui are GitKraken Client, TortoiseGit. Git-gui is a Tcl/Tk-based graphical user interface that concentrates on commit generation and single file annotation. It's not free, so if you're looking for a free alternative, you could try GitHub Desktop or Sourcetree. The best git-gui alternative is SmartGit. Gitk is easiest to invoke from the command-line. There are more than 25 alternatives to git-gui for a variety of platforms, including Mac, Linux, Windows, Android and F-Droid apps. This is the tool to use when you’re trying to find something that happened in the past, or visualize your project’s history. Think of it like a powerful GUI shell over git log and git grep. When you install Git, you also get its visual tools, gitk and git-gui. Tidying up your local and remote repository.Reflog - Restoring commits not shown in git log.Display commit history graphically with Gitk. ![]() mailmap file: Associating contributor and email aliases
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |