Remote .git from remote matching pattern
Remote .git from remote matching pattern

The capture group before '(?:\.git)?' would match the string '.git'
anyway, so there is no need to explicitly add this optional group at
the end of the pattern. The '.git' will need to be stripped from the
tail of the string no matter what.

dtao/SublimeBucket