Skip to content

Instantly share code, notes, and snippets.

View clairesrc's full-sized avatar
🌈
wow

Claire R clairesrc

🌈
wow
View GitHub Profile
@clairesrc
clairesrc / rebase
Last active September 9, 2019 14:54
Trunk Rebase Utility
#!/bin/bash
BASEBRANCH=${1:-master}
HEADBRANCH=`git rev-parse --abbrev-ref HEAD`
if [ "$BASEBRANCH" == "--help" ] || [ "$BASEBRANCH" == "-h" ];
then
echo "Usage: rebase BASEBRANCH (defaults to master)"
echo "Re-run the same command after fixing conflicts to reset upstream branch and push."
exit
fi

Keybase proof

I hereby claim:

  • I am clairesrc on github.
  • I am clairesrc (https://keybase.io/clairesrc) on keybase.
  • I have a public key whose fingerprint is 78EE 758D 22B1 C872 9081 C0D1 F70F D13B CBEB C573

To claim this, I am signing this object: