6 ms·
You can always run something like: git diff origin/your-branch..your-branch to check whether you have made any unintentional changes to the code. For the
by u801e 8y ago
You can always run something like:
git diff origin/your-branch..your-branch
to check whether you have made any unintentional changes to the code. For the commits themselves, you can do something like:
git log origin/master..origin/your-branch
and
git log origin/master..your-branch
to see if the commits differ. You can use the -p switch on the git log commands to see if the diffs have changed. If you do this before pushing up to the remote, then it's much easier to see what you're going to change before you run git push -f.