Skip to content

Instantly share code, notes, and snippets.

View acacioas's full-sized avatar

Acácio Santos acacioas

View GitHub Profile
@acacioas
acacioas / keybase.md
Created October 14, 2019 13:30
keybase

Keybase proof

I hereby claim:

  • I am acacioas on github.
  • I am acacioas (https://keybase.io/acacioas) on keybase.
  • I have a public key ASBUp97fYI0GTJ1h20aSADHxk8lKaLEfL1TGHYClJXY33go

To claim this, I am signing this object:

@acacioas
acacioas / git-create-remote-branches.sh
Created August 26, 2013 17:43
Creates git remote branches as local branches with the same name, but without the need of checking out each one of them
#!/bin/bash
git show-ref | grep remotes | while read BRANCH; do REV=$(echo -n ${BRANCH} | awk '{print $1}'); NAME=$(echo -n ${BRANCH} | awk '{print $2') ; echo ${REV} > ".git/refs/heads/${NAME#refs/remotes/}"; done
exit