![]() ![]() You haven't yet put up a pull request (PR), and you want to maintain the logical separation between the commits for the sake of the reviewers' understanding. Say you're working on a feature branch, and three commits ago, you made a typo. You can swap between the Unstaged Changes and Staged Changes panels with Tab. If you want to remove a line completely (e.g., if you accidentally left a console.log in the middle of your code), simply press d. Use the arrow keys to navigate between the files and hit the Space bar to toggle a file between staged and unstaged. When you open Lazygit, you'll find your modified files marked in red in the Files panel, meaning their changes are unstaged. Let's say you've just made some changes to some files, and now you want to commit your changes. Lazygit lets you stage and unstage files with lightning speed. Even if you copy and paste the filename, that's still nine keypresses. Typing out git add this/is/my/really/long/filename.txt is not a fun time. With 15,000 stars on GitHub, it turns out I wasn't the only person struggling! If you've found yourself wrestling with Git's command-line interface or even one of the other Git GUIs out there, read on! You might come across a feature here that could save you time. I made Lazygit, a terminal UI for Git, to help me tame the beast and harness that power. ![]() If there's one word people use to describe Git, it's "powerful." Nobody can deny that Git is indeed a powerful beast, but after months of struggling to do embarrassingly basic things in it, I realized that mere mortals like me were never going to wield that power through a command-line interface.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |