pushing to git remote branch

As Abizern says, this works: git push origin mybranch But, to explain further, the mybranch part is a refspec. This specifies the remote ref which should be updated with the given local commit. So, the command above is equivalent to: git push origin mybranch:mybranch or even: git push origin mybranch:refs/heads/mybranch and, indeed, since you’re on …

Read more

Github pull request shows wrong diff

Despite the misleading/broken github interface there’s actually a way to get what you want. You need to drop one . Instead of: https://github.com/account/repo/compare/ath/branchA…branchB do https://github.com/account/repo/compare/ath/branchA..branchB This compares branch heads instead of simply using the base branch to find the merge base. github’s reponse is what clued me in from @edwin-evans’ response: This is a result …

Read more