Skip to content

Instantly share code, notes, and snippets.

@zew13
Created December 21, 2021 06:18
Show Gist options
  • Select an option

  • Save zew13/76caab5e55bd8b650eefcdee7419822a to your computer and use it in GitHub Desktop.

Select an option

Save zew13/76caab5e55bd8b650eefcdee7419822a to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
branch=`git branch 2> /dev/null | sed -e '/^[^*]/d' |awk -F' ' '{print $2}'`
git add --update :/ && git commit -m "🔶"
git pull origin $branch
branch=`git branch|awk '{print $2}'`
git pull origin $branch
git merge $branch
git push --tag --set-upstream origin $branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment