When I try doing this I get following error:
fatal: '../web' is outside repository
You can, if that sibling directory is a git repo.
But it is best, as in this example, to use the full path of that web folder.
web