![]() This is why I built gut - so that everyone can use git without the headaches. I was always scared of doing the wrong thing and not being able to revert it. In my two years of learning how to code, I found git to be extremely frustrating. Documentationĭocumentation FAQ Why was this project built? That being said, I believe that gut is an excellent choice for simple tasks, while Git can still be utilized for more complex tasks. In fact, if Git were to disappear, gut would no longer function since it heavily relies on Git commands internally. While gut is a useful CLI tool, it's not intended to replace the git CLI. Specifically, when it comes to Git, I find that it can seem complex right from the beginning (such as setting user.email and user.name) Coexist with Git I believe that when learning new technology, it's best to start with a high-level understanding and then gradually delve deeper over time. If you make a mistake, gut will try to figure it out and prompt you again.Īnd if gut can’t help you, it will do its best to guide you to solve the issue. You can come back to a branch or create a new one from that commit.īy blocking operations, you won’t create several commits before realizing they aren’t linked to anything. In detached HEAD, every operation is blocked until you do something with that commit. Just run gut goto to change your working tree according to that commit. ![]() With gut, getting into a detached HEAD is pretty trivial. Gut tracks all files unless they are listed on your. Staging area isn’t a thingĮverything git tracks will be saved in your next commit. The same thing applies if you attempt to amend files of a commit. If you made a typo in your commit message, gut will only allow you to change it if it hasn’t been pushed yet. It will create a new commit containing the state of the commit selected. If you want to cancel your changes, run gut revert. Gut will never allow you to modify the history pushed to a remote repository. If you want to compare two commits, gut will open the compare view in your favorite repository hosting. So, why not use them to their fullest? When you attempt to merge a branch, gut will open a page to create a pull request. We have several tools like GitHub, GitLab, or BitBucket. Go install Principles Integration with cloud gut switch - Creates a new branch or switches to an existing one.gut whereami - Shows where your HEAD points to (no more rev-parse).gut undo - Discards changes made since the last commit.gut revert - Reverts your project to a previous state to fix a bug introduced n commits ago.gut fix - Helps you fix your mistakes with git.gut goto - Lets you rewind the state of your project to a particular commit by temporarily modifying the working tree.gut sync - Syncs changes with your remote repository.gut save - Commits changes using gitmoji.gut fix command helps you fix your mistakes with git.Integration with cloud platforms (merge and diff opens in the web UI).Gut save # Alias of gut commit # Sync your changes with the upstream
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |