Skip to content

Instantly share code, notes, and snippets.


Maurizio Pillitu maoo

View GitHub Profile
Integralist / GitHub
Last active Apr 13, 2022 — forked from madrobby/gist:9476733
Download a single file from a private GitHub repo. You'll need an access token as described in this GitHub Help article:
View GitHub
curl --header 'Authorization: token INSERTACCESSTOKENHERE' \
--header 'Accept: application/vnd.github.v3.raw' \
--remote-name \
# Example...
glennblock / fork forced sync
Created Mar 4, 2012
Force your forked repo to be the same as upstream.
View fork forced sync
git fetch upstream
git reset --hard upstream/master