git-machete
git-machete copied to clipboard
`github create-pr`: compare with remote instead of local
Hi 👋
Imagine the following:
- A single branch in the repository -
master. - I forgot to create a new branch or simply want to do it later.
- Commit or two to
master(now it's ahead of origin). - NOW sliding in a new branch -
feature(untracked). - Push
feature. - Execute
git machete github create-pr. - Outptut:
All commits in feature branch are already included in master branch. Cannot create pull request.
The above result is ofc true for local/master. However, esp in the scope of GitHub pr for me, it is rather clear that it is remote/master that I am interested in.
Q: Would it make sens to change the git machete github open-pr behavior to compare with remote branch instead?
So my scenario would end cerating PR freom remote feature to remote master.
+1, makes sense at least to refine the warning to mention that all commits from feature branch are in local master but not in origin/master + some suggested action for the user to tidy up the mess