Script for checking out off main

This commit is contained in:
pfych 2024-10-02 15:47:59 +10:00
parent 4e915af85e
commit 01b5d75e4c

View File

@ -55,3 +55,10 @@ function restore() {
git restore --staged "$(git status | grep modified: | sed -e 's/ *.*: *//g' | tac | fzf -m)"
git status
}
function offMain() {
is_in_git_repo || return
git fetch origin main:main
git checkout main
git checkout -b "$1"
}