Agita

All posts

March 25, 2022

  • coding

I use git a lot. Usually after writing a bunch of code. And then I find that as I'm trying to type these same basic commands, that I've typed a thousand times before, they don't come out right. Usually goes something along the lines of "git statsu", then "git comit", and "gut puhs", and that's on a good day. So I was fed up with this, and thus decided to create Agita:

Home screen
Home screen

All Agita is is a basic text-based user interface --- written in node and distributed on the npm registry --- that exists in your terminal and allows for selecting the commands you want. Sure, the problem can be managed by using shortcuts and aliases but I'm choosing the path of selective ignorance.

git status
git status

Plus I can then do some cool stuff like below. This is a user interaction that allows for selectively choosing (or removing) files from the git repository. You can navigate through directories and or select full directories with nothing but your arrow and enter keys.

Selective stage changes
Selective stage changes

I also found a tendency to create branch names that don't necessarily represent the purpose of the branch just so that the name is simple and short. I then keep forgetting or typing the name wrong. So Agita makes it simple for whenever you need the name of a remote or branch. Agita searches your .git folder and grabs all remotes and refs automatically.

Pick a branch to push
Pick a branch to push

And while not being completely fleshed out, if you do run Agita in a directory that isn't a git repository, it'll help you set one up.

No .git folder present
No .git folder present

Agita is open source, all the code is here. And is published to npm here.

Making Charcoal The Belt Knife All posts Have something to say or just want to get notified about new posts? Reach out!