Files
.dotfiles/zsh/merge-main.sh
2024-03-07 08:58:13 -05:00

7 lines
126 B
Bash
Executable File

#!/usr/bin/bash -e
branch=$(git status|head -1|cut -f3 -d\ )
git checkout main
git pull
git checkout "$branch"
git merge main