I was reading through this answer to a question. I've always worked with only one repository until now so I never thought much about the git syntax but this answer made me realize that git's syntax might be backwards to what's conventional. (at least for the push command)
As I understand it, in the accepted answer, @jweyrich makes a new repository called all
which acts as a repository except it actually represents two repositories in his example. At the end he writes that we can push what we want to commit to the remote repository with git push all master
.
If I'm understanding this correctly, git is the only api I know of where you specify <command> <dest> <source>
as opposed to <command> <source> <dest>
. Copying files, moving files, etc... Is all done with the latter syntax. Even AWS s3 buckets use the syntax <command> <source> <dest>
.
Why does git seem to have backwards syntax? Am I one of the few that for whom this wasn't obvious when starting with git?