Live data from Hacker News

Forgit: A utility tool powered by fzf for using Git interactively

github.com

1–10 of 26 posts

Re: Forgit: A utility tool powered by fzf for using Git interactively

#4
If anyone cares, I do something similar with my git aliases: https://github.com/kbd/setup/blob/master/HOME/.config/git/co...

So, "ga" similarly gives a fuzzy finder of files to "git add" that are actually in git status, "gcp" lets me cherry pick one or more commits from a branch where both the branch and commits are picked with fzf, and so on.

Re: Forgit: A utility tool powered by fzf for using Git interactively

#6
This is awesome although I solve these problems a different way for my workflow. If I really need to dive into git I use Tower. For adding to a commit, I basically never need to add anything less than everything. In 1 step I add everything and commit with a message without needing quotes:

  # git config
  alias.add-commit !git add -A && git commit

  # .bash_profile
  # Use like: gac this is my commit message
  function gac ()
  {
     git add-commit -m "$*" 
  }

Re: Forgit: A utility tool powered by fzf for using Git interactively

#8
Nice. I do something similar with simple scripts for fuzzy finding a file/sha, and then call them in place of one being expected, but this might tempt me to let someone else maintain it (with undoubtedly more thought and time put into it by a long shot) instead :)

https://github.com/OJFord/fzutils

I dislike all the short acronym-style aliases though; (I know it's fairly popular with git) not immediately obvious if it's supported to just use the usual commands.

Re: Forgit: A utility tool powered by fzf for using Git interactively

#10
post #4

If anyone cares, I do something similar with my git aliases: https://github.com/kbd/setup/blob/master/HOME/.config/git/co... So, "ga" similarly gives a fuzzy finder of files to "git add" that are actually in git status, "gcp" lets me cherry pick one or more commits from a branch where both the branch and commits are picked with fzf, and so on.

Have you published those tools? I don't find anything relevant via Googling nor searching your repos.
Post reply on HN