Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Thank you. I didn't realise this was possible with rebase. Ideally I would like to push the comments-cleaned version to the server whilst retaining a comments-not-cleaned local reference. I suppose this would require separate branches, unless you could suggest a solution in combination with your rebase method? Commented Jan 9, 2014 at 4:32
  • @James: Yes, one option would be to keep your private comments on a private branch. Then you can transfer (using merge, or cherry-pick, or copy branch+rebase -i) only the changes you want to publish to another branch which you push. However, keeping this "private" branch up-to-date can become tedious (and you must constantly be careful not to push it accidentally), so I'd probably rather not do that. Rather, find a way to put your private changes into a form that can be pushed. Commented Jan 9, 2014 at 8:29