Skip to content

Instantly share code, notes, and snippets.

@agdemore
agdemore / syncm.sh
Created May 8, 2019 10:02 — forked from cwsaylor/syncm.sh
Merge master into current branch
#!/bin/sh -x
CURRENT=`git branch | grep "*" | awk '{print $2}'`
git checkout master
git fetch
git merge origin/master
git checkout ${CURRENT}
git merge master ${CURRENT}

Keybase proof

I hereby claim:

  • I am agdemore on github.
  • I am agdemore (https://keybase.io/agdemore) on keybase.
  • I have a public key whose fingerprint is 9440 B8E7 6050 DD77 A4BB 318B 8D4C 7895 0C81 765C

To claim this, I am signing this object: