bisgit
v0.1.0
Published
Git CLI tool to simplify common advanced git workflows
Readme
Bisgit
Full Tui coming soon
Commands
Commit Tooling
git sha <commit>copies the shortend sha to clipboard (uses HEAD as default)git amendcommits with--no-editand--amend. Accepts extra flags too.git fixup <commit>commits staged changes as aa rebase, and starts an interactive rebase on the target commit if it would not fail.git savepointmakes a WIP commit with current timestamp.
Merge Helpers
git backmerge <branch>updates a branch and then merges it into the current branch.git conflict <branch>shows all conflicts that would occur in a merge.git abortandgit continueare useful in conflict resolution situations.git lines <branch> <ignore-file> <ignore-file> ...*shows the number of lines changed.
Branching
git autoprunedeletes any already merged branches.git rebranchIf conflicts won't exist, create new branch from main and cherry-pick all commits from $git track <branch>copies a remote branch to a local one and sets the origin upstream.git yankis a force pull for the current branch. It commits a WIP commit and/or backup branch if commits don't exist in remote. Then it resets the local branch to match the remote. Useful way to handle a collaborator's force push.
Github
git code-review <pr>checks out a pr and creates a diff similar to github's code review diff viewer.git whoamishows github username.git languagesprints the percentages of languages for this repo.git coauthor <username>commits with a co-authorship description.
Utility
git pwdshows repo root path.git wipeclears all uncommitted trackable filesgit files <commit>shows the files edited by the given commit.git churnshows you the 25 most edited files.git excludeandgit includeallows you to ignore files locally without modifying the .gitignore file.git remote-defaultshows whether the remote default branch is 'main', 'master', etc.
I turned many of my git aliases into commands. The original aliases are found this gist.
