7 lines
126 B
Bash
Executable File
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
|