Open JLKwong opened 3 years ago
In order to find out why you're ahead on a certain branch, type git log
. From there you can deduce what commit is responsible for your uneven branch.
I think your solution is great for uneven branches but I feel like it should belong somewhere on the FAQ page in the Technical Questions section. The reason being that unless you've just fetched, your master branch should never be ahead. We're not sure why your branch was ahead, but it doesn't make sense to add a solution for an unclear problem.
In order to find out why you're ahead on a certain branch, type git log. From there you can deduce what commit is responsible for your uneven branch.
@rjpadilla This is a wonderful solution. ✨ I'll revise my issue to use git log
instead of git reset
.
I think your solution is great for uneven branches but I feel like it should belong somewhere on the FAQ page in the Technical Questions section.
I'll add the git reset
option to the Technical Questions section, and add a link to the FAQ as one of the steps in case anyone encounters an issue.
Problem
In Step 6, GitHub Issues, the steps to sync your fork do not work in all cases.
Steps to reproduce the problem
Although I encountered this, I don't know what I did to produce this problem. My master branch was ahead of treehouses's branch for some reason, and syncing my fork would not make it even.
Screenshots
Proposed solution
Add optional steps after the original steps to sync your fork:
Add the following to the Technical Questions section in the FAQ page: