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
| find . -name '.DS_Store' -type f -delete |
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
| export HISTCONTROL=ignoredups:erasedups | |
| shopt -s histappend | |
| export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND" |
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/bash | |
| read -p "Ensure param #1 (\"$1\") format is \"YYYY-MM-DDThh:mm:ss\", then press [ENTER] to commit..." | |
| GIT_AUTHOR_DATE="$1" GIT_COMMITTER_DATE="$1" git commit $2 |
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
| # interactively rebase last <n> commits (defaults to 2): | |
| # pick needed ones and drop those that got modified on target branch | |
| git rebase -i HEAD~${1-"2"} | |
| # now reintegrate target branch (defaults to main) | |
| git rebase ${2-"main"} | |
| echo "Learn more at https://cssence.com/2026/rebase-feature-branch/" |
OlderNewer