Script for checking out off main
This commit is contained in:
parent
4e915af85e
commit
01b5d75e4c
@ -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"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user