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

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -