How can one dry run a git push to check whether one has write permissions to a remote?
问题 Is there a way to dry run a git push to know whether the user has permissions to actually create a new remote branch? I'd like to be able to verify that all is good in regards to permissions for a bunch of repos where the user will attempt to create new branches before they are actually created so that I can dry run the full execution before actually doing it. 回答1: Shawn Pierce wrote the following about git push --dry-run : A --dry-run doesn't send the commands the client would use from