Skip to content

Instantly share code, notes, and snippets.

@noxqsgit
Last active December 27, 2015 18:39
Show Gist options
  • Save noxqsgit/7371508 to your computer and use it in GitHub Desktop.
Save noxqsgit/7371508 to your computer and use it in GitHub Desktop.
nap switch branch

nap (remote)

nap stop APP

apps/APP (local)

git checkout stable
git push REMOTE stable
git branch -d master

repositories/REPO (remote)

git symbolic-ref HEAD refs/heads/stable
git branch -d master

apps/APP (local)

git remote prune REMOTE

nap (remote)

vim naprc # stable
git fetch --all
git checkout stable
git branch -d master
git remote prune origin
nap update APP
nap start APP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment