This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| ############################################################################ | |
| # | |
| # Bash prompt with host string, VC info, and current dir | |
| # | |
| # To use, copy this folder to ~/.bash_prompt and place the following | |
| # snippet in your profile script (.bash_profile, .profile, etc.): | |
| # | |
| # if [ -f ~/.bash_prompt ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [alias] | |
| a = add | |
| aa = add -A | |
| ad = add . | |
| ap = add -p | |
| unadd = reset HEAD | |
| ######## | |
| s = status -s | |
| sd = status -s . | |
| st = status |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [alias] | |
| rl = log --reverse --pretty=redmine | |
| rlo = log --reverse --pretty=redline | |
| [pretty] | |
| redmine = "format:| commit:%h | %ad | %ae |%n%n%s%n%n%b%n" | |
| redline = "format:| commit:%h | %ad | %s |" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # `prepare-commit-msg` | |
| # | |
| # This hook prepends commit messages with a numerical tag when | |
| # committing under numbered branches. | |
| # | |
| # For example: | |
| # | |
| # feature/8932-callout-links -> "[#8932] ..." |
NewerOlder