.dotfiles/.scripts/reset-config-and-remote.sh

9 lines
421 B
Bash
Raw Permalink Normal View History

2025-01-14 00:13:46 -05:00
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
config checkout --orphan newBranch
config add -A # Add all files and commit them
config commit -m "reinit"
config branch -D master # Deletes the master branch
config branch -m master # Rename the current branch to master
config push -f origin master # Force push master branch to github
config gc --aggressive --prune=all # remove the old files