Using Git rebase without creating chaos in your repo