Skip to content

Instantly share code, notes, and snippets.

@snggeng
snggeng / dependent-diffs.txt
Last active March 5, 2020 21:24 — forked from zackdever/gist:8701478
arc diff off another diff
Topic: Dependent Phabricator reviews
Say you have an upstream called master, and a feature branch F1, and a second change that depends on F1, (call it F2).
git checkout master
git checkout -b F1
# work work
git commit -a
arc diff
git checkout -b F2 # Note that F1 is set as the upstream of F1
# set upstream, in this format git branch -u <remote>/<branch>
@snggeng
snggeng / connect-remote-mongo-via-ssh-tunnel.md
Created March 22, 2018 11:33 — forked from umidjons/connect-remote-mongo-via-ssh-tunnel.md
Create ssh tunnel and connect to the remote mongo database on command line

Create ssh tunnel and connect to the remote mongo database on command line

Assume followings:

/mykeys/.ssh/prodserver.pem - is a certificate file

umid - is a user name

111.111.111.111 - is a remote host, that mongodb runs

@snggeng
snggeng / git-workflow.md
Created January 18, 2018 16:46 — forked from forest/git-workflow.md
Git Feature Branch Workflow

We subscribe to the Git Featrue Branch workflow, briefly described in that link.

In practice, it works as follows:

FEATURE DEVELOPMENT

Steps to Follow:

  1. Start with an updated local development branch -- by checking out the dev branch and pulling changes:
    git checkout development
    git pull origin development