Skip to content

Instantly share code, notes, and snippets.

View Bigua's full-sized avatar

Ademar Peixoto Bigua

View GitHub Profile
@Bigua
Bigua / sugh.sh
Created July 19, 2020 02:13 — forked from erdincay/sugh.sh
su GitHub (downloading all repositories from a given user)
#!/bin/bash
if [ -z "$1" ]; then
echo "waiting for the following arguments: username + max-page-number"
exit 1
else
name=$1
fi
if [ -z "$2" ]; then
@Bigua
Bigua / git-update-fork.sh
Created July 8, 2020 01:37 — forked from rdeavila/git-update-fork.sh
Git: como atualizar um fork com as mudanças do original?
#!/bin/bash
# Adicione um novo remote; pode chamá-lo de "upstream":
git remote add upstream https://github.com/usuario/projeto.git
# Obtenha todos os branches deste novo remote,
# como o upstream/master por exemplo:
git fetch upstream