JasonYao / dotfiles

My configuration-based dotfiles, using the pydotfiles library
GNU General Public License v3.0
1 stars 0 forks source link

Add in git convenience aliases #4

Closed JasonYao closed 5 years ago

JasonYao commented 6 years ago

Git branch sorting (change this so it's the default behavior)

The following alias enables an ordering of git branches so the freshest (latest) git branches are at the bottom (really helpful if there's a lot of branches, and the naming convention is by lexicographical sorting by default, which puts jyao/JIRA-111 right after jyao/JIRA-11)

git branch --sort=committerdate

The goal is now to change it so that if I run git branch then it will sort by committerdate by default

Git file untracking

When a file is tracked in git but I don't want additional stuff to be tracked, the following command will make it so that it doesn't show up in git status:

git change-index --skip-worktree FILE_NAME

To undo this operation and begin tracking, there is:

git change-index --no-skip-worktree FILE_NAME

The goal is to add in a git alias git untrack and git track to make this a bit more convenient

JasonYao commented 5 years ago

For setting default behavior of git commands, use https://git-scm.com/docs/git-config

For setting new aliases (e.g. git track and git untrack), use git aliases

JasonYao commented 2 years ago

:tada: This issue has been resolved in version 1.0.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: