Skip to content

Instantly share code, notes, and snippets.

View arvsr1988's full-sized avatar

Arvind Sridharan arvsr1988

  • Chennai
View GitHub Profile
@CristinaSolana
CristinaSolana / gist:1885435
Created February 22, 2012 14:56
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
@lobster1234
lobster1234 / localstack.md
Last active August 8, 2023 20:06
Working with localstack on command line

Starting localstack

C02STG51GTFM:localstack mpandit$ make infra
. .venv/bin/activate; exec localstack/mock/infra.py
Starting local dev environment. CTRL-C to quit.
Starting local Elasticsearch (port 4571)...
Starting mock ES service (port 4578)...
Starting mock S3 server (port 4572)...
Starting mock SNS server (port 4575)...
@KumarManoj-S
KumarManoj-S / rename_the_master_branch_in_git
Last active November 3, 2020 03:50
Renaming the default branch (master) to a different name.
# consider the default branch is master and we want to rename it to prod
# Steps to rename the default branch master,
# 1. Branch off from master to a new branch called prod.
git checkout -b prod
# 2. set up upstream and push the renamed branch
git push -u origin prod