Skip to content

Instantly share code, notes, and snippets.

View Hamza-Slama's full-sized avatar
🎯
Focusing

Hamza Slama Hamza-Slama

🎯
Focusing
View GitHub Profile
@Hamza-Slama
Hamza-Slama / gh-dl-release
Created January 19, 2022 08:37 — forked from maxim/gh-dl-release
Download assets from private Github releases
#!/usr/bin/env bash
#
# gh-dl-release! It works!
#
# This script downloads an asset from latest or specific Github release of a
# private repo. Feel free to extract more of the variables into command line
# parameters.
#
# PREREQUISITES
#
@Hamza-Slama
Hamza-Slama / gist:7953283859f8cbe60f35299656490f32
Created February 12, 2020 13:07 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream