{"thread":{"id":"41140","subject":"git pull --rebase overwrites/deletes empty commits","startedAt":"2016-01-07T12:56:20Z","lastAt":"2016-01-07T12:56:20Z","messageCount":1,"participants":["Bastian Binder"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"275476","messageId":"CAL8XmJ2tp3A1NY_5BoNNLr=g+D4KUa7-iZy7_3E8kCUhSjNGAg@mail.gmail.com","threadId":"41140","inReplyTo":null,"subject":"git pull --rebase overwrites/deletes empty commits","fromName":"Bastian Binder","fromEmail":"bastian.binder1@gmail.com","sentAt":"2016-01-07T12:56:20Z","receivedAt":"2016-01-07T12:56:20Z","isPatch":false,"sender":{"key":"bastian.binder1@gmail.com","avatar":null},"body":"Hello,\n\nI have recently encountered a probable bug in git. We have messages we\nwant to appear in the log and do an empty commit:\n\ngit commit --allow-empty -m \"message we want to publish\"\n\nAfter this commit, we do a fetch-rebase in order to pull the\nintermediate commits into the local branch before pushing:\n\ngit pull --rebase branch origin branch\n\nProblem is: the pull --rebase will delete the empty commit. I see git\nrebase has a --keep-empty option. I cannot find such option for the\npull --rebase operation.\n\nThanks in advance,\n\nBastian\n"}]}