Skip to content

Instantly share code, notes, and snippets.


Keybase proof

I hereby claim:

  • I am robbdempsey on github.
  • I am robbdempsey ( on keybase.
  • I have a public key ASBGv8EbZ-harvboFDrzLt-cmoIwSs7YBh88xDoWmDHmqwo

To claim this, I am signing this object:

View simplify rebase workflow
git fetch
git rebase origin/master
git checkout master
git pull
git checkout mybranch
git rebase master
View git commands
that I keep forgetting.
### checkout a remote branch
git fetch origin
git checkout -b {local branch name} {origin/remote branch name}
### list branches and their last commit
git branch -v -a
### delete remote branch

Merging and tagging on long running branch

  1. Define a branch and a tag that will be your long-running-branch and be stable. (i.e. long-running-branch-stable lrb)
  2. Each developer working on the long running branch should do feature work on their own branch. (ie. robbdempsey/feature2)
  3. When you are ready to merge changes from a developer feature branch, Get the latest branches and tags from remote
    • git pull
    • When someone else has merged, tagged and pushed to github/stash you will need to pull those changes local
  4. Merge in your changes
    • git checkout long-running-branch-stable
    • git merge --no-ff [my-branch]
robbdempsey / dateCompare.js
Created Aug 11, 2015
way to check and compare dates
View dateCompare.js
var nonDate = 1438387200000
var date2 = '2015-08-12'
var date1 = '2015-08-01'
var obj = Date.parse(date1)
var obj2 = Date.parse(date2)
View gist:b8b734e085010f7b5709
Verifying that +robbdempsey is my openname (Bitcoin username).