Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This should do it, assuming you're on development:

  git checkout -b tmp
  git commit -a -m "throwaway"
  git push wherever tmp
  #switch machines
  git checkout development
  git fetch wherever 
  git merge wherever/tmp --no-ff
  git reset HEAD^
  git push wherever :tmp
and you could automate that with a pair of scripts.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: