down vote accepted
Edit: I was wrong. See below.
Shawn Pierce wrote the following about git push --dry-run
:
A
--dry-run
doesn't send the commands the client would use from client to server, so the server can't tell the client if it would accept them or not. The entire--dry-run
thing is client side only.
(my emphasis)
So, if there is a way to check whether one has write permissions to a remote, git push --dry-run
is definitely not it.
Read full article from How can one dry run a git push to check whether one has write permissions to a remote? - Stack Overflow
No comments:
Post a Comment