Skip to content

Instantly share code, notes, and snippets.

@cesarhdz
Last active October 27, 2016 22:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cesarhdz/fed104a171ee42cfe04dd2a97386a76b to your computer and use it in GitHub Desktop.
Save cesarhdz/fed104a171ee42cfe04dd2a97386a76b to your computer and use it in GitHub Desktop.
## Sync feature wiht develop
# Rebase
$ git checkout feature/<feature>
$ git checkout feature/<feature> -b feature/<feature>-tmp
$ git checkout -
# Preserve merges and set commiter date to author date
# see: http://stackoverflow.com/a/2976598/915034
$ git rebase develop --preserve-merges --committer-date-is-author-date
# Resolve Conflict in rebase
- manually resolve
$ git rebase --continue
$ git rebase --skip
## will fail
## $ git push origin feature/<feature>
## Publish feature
$ git push origin --delete feature/<feature>
$ git push origin feature/<feature>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment