# This will show all branches (local & remote) that start with my$ git branch --list 'my*' -a* my-branch
# Better: the pattern includes the remote$ git branch --list '*my*' -a* my-branchremotes/origin/my-branch
git diff main origin/masterfatal: ambiguous argument 'main': unknown revision or path not in the working tree.Use '--' to separate paths from revisions, like this:'git <command> [<revision>...] -- [<file>...]'