git - Rebasing with preserving merges -


i new git , haven't been able practice lot. asking question here before issue command our main repo.

i @ branch featurex , want rebase master (with merge history) ... , push stream branch. have read couple of things , came following set of commands

  1. git rebase --preserve-merges master featurex
  2. git push -u origin featurex

however, given there no place can test out not sure if right command issue on our main repo.

rebasing rewrites history. if want preserve history exactly, don't rebase. merge instead.


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -