rogerxu / git-tips

Tips for Git
Apache License 2.0
2 stars 3 forks source link

Pull Request on GitHub #9

Open rogerxu opened 8 years ago

rogerxu commented 8 years ago
rogerxu commented 8 years ago

Deal with large changes in a pull request

GitHub supports progressively loaded diffs in Pull Request since Dec 2016..

How we made diff pages three times faster - GitHub Engineering

rogerxu commented 7 years ago

Force push

Can a contributor force update the feature branch which will overwrite commits pushed by others?

Yes. The contributor can do force push on a feature branch. Then the Pull Request will be updated and retrigger the checks.

rogerxu commented 7 years ago

Rebase

Can a contributor rebase the feature branch on the master branch?

GitHub supports rebase merge in Pull Request since Sept 2016.

Rebase and merge pull requests

rogerxu commented 7 years ago

Cherry-pick

rogerxu commented 7 years ago

Squash

GitHub supports squash merge in Pull Request since Apr 2016.

Squash your commits

rogerxu commented 7 years ago

Backend + frontend code in same feature branch or separate ones?

Ideal they should be in same feature branch. But if there are limitations on the technology then you can use separated branches.

rogerxu commented 7 years ago

Resolve merge conflicts

GitHub supports resolve simple merge conflicts since Dec 2016.

Resolve simple merge conflicts on GitHub