Skip to content

Instantly share code, notes, and snippets.

View noahpresler's full-sized avatar

Noah Presler noahpresler

View GitHub Profile
#FROM YOUR TEMP SEMESTERLY
git fetch --all
git checkout -b temp origin/staging
git reset --hard 641e0efe709ccd8828532725cfefa908e77c07c5
git checkout feature/copy_links
git rebase --onto temp 4c3ed5e3ebb2d2912155af1c79bf972e17b9554b
@noahpresler
noahpresler / Alex Rebase
Last active July 22, 2017 16:59
Rebasing
git branch -D temp
git fetch --all
git checkout feature/vectorized_search
git reset origin/feature/vectorized_search --hard
git checkout -b temp origin/staging
git reset --hard beb2058e8b958cd58a8aa94e0c22e33ac3f0a6f6
git checkout feature/vectorized_search
git rebase --onto temp 3f059fadbd45ad29bcd7a47d9ab87aff3ea8b42e^
git merge staging
@noahpresler
noahpresler / reset.sh
Created July 20, 2017 19:16
Create new branch with old commits before history rewrite
git checkout -b {NEWBRANCHNAME} staging
git log --no-merges noah_messed_up..{OLDBRANCHNAME} --format=format:%H | git cherry-pick --stdin