- Description: Displays the Markdown documentation for your Git aliases in the terminal, automatically rendering it with glow for a formatted, easy-to-read view. If glow is not installed, the command will prompt you to install it in order to view the documentation.
- Arguments: None
- Usage:
git docs
- Description: Lists all configured Git aliases, sorted alphabetically.
- Arguments: None
- Usage:
git help-aliases
- Description: Amends the last commit with a new message.
- Arguments:
<message>
- Usage:
git amend 'New commit message'
- Description: Resets the last commit and unstages all changes.
- Arguments: None
- Usage:
git undo
Description: Resets to a previous commit, dropping the latest commits. Defaults to 1 commit if no number is specified. It then updates the branch on the remote server with the dropped commit.
Arguments: <number> [optional]
Usage: git drop-latest
(defaults to 1 commit) or git drop-latest 2
- Description: Rebases the current branch interactively from the root
- Arguments: None
- Usage:
git b-rebase-root
- Description: Renames a branch locally and on the remote repository.
- Arguments:
<old-name> <new-name> [remote]
- Usage:
git b-rename old-branch new-branch origin
- Description: Creates a new branch from a base branch and cherry-picks a list or range of commits.
- Arguments:
<new-branch> [base-branch] [commit-id] [cherry-pick-commits]
- Usage:
git create-from-picks feature-branch "commitA^..commitB"
- Description: Creates a new branch from the specified base branch (or
main
/master
by default) or from a specific commit ID if provided. - Arguments:
<branch-name> [base-branch] [commit-id]
- Usage:
git b-new feature-branch main
- Description: Syncs the current branch with the default branch (main or master) or a specified branch.
- Arguments:
[branch-name]
- Usage:
git sync-base develop
- Description: Shows what files would be deleted by a clean operation, without actually deleting them.
- Arguments: None
- Usage:
git view-clean
- Description: Resets changes and forcefully removes untracked files.
- Arguments: None
- Usage:
git full-clean
- Description: Displays the status of the repository in a short format.
- Arguments: None
- Usage:
git st
- Description: Displays a graphical representation of the commit history.
- Arguments: None
- Usage:
git lg
- Description: Creates a backup branch of the current branch and pushes it to the remote repository.
- Arguments: None
- Usage:
git backup-branch