Reputation: 63
I want to upload my .diff file (from git diff) which contains what I changed for my team-mate can review it before I commit to GitHub.
How could I upload my diff file and create a review page for my colaborators?
I already google but not clear so much. Please help, thanks you!
Upvotes: 0
Views: 4938
Reputation: 7996
use this command:
git merge --no-commit --no-ff branchname
Upvotes: 0
Reputation: 165546
You could put the diff in a Github Gist, but that would be defeating the point of Github.
Instead, you'd use a Pull Request. You'd make the changes in a branch, possibly in your own fork of the project, and submit it to the project as a Pull Request. This contains all your commits on that branch with full context. Pull Requests have their own review system, so others can comment. Once it passed review, the changes can be merged.
Upvotes: 2