From: Duy Nguyen Date: Tue, 19 Mar 2013 12:15:19 GMT Subject: Re: [ITCH] Specify refspec without remote Message-ID: In-Reply-To: On Tue, Mar 19, 2013 at 6:53 PM, Ramkumar Ramachandra wrote: >> git push . foo:bar > > A URL may be a path to a git repository, and '.' is a valid path. > Currently, 'git push .' seems to push to the current repository (what > does that even mean?). For something truly unambiguous, we'll have to > use a character that's disallowed in URLs and isn't interpreted by the > shell- I can't seem to think of one. Otherwise, we'll have to > fallback to using heuristics anyway. Yeah that was a stupid suggestion. There's also "-". Right now git push accepts it as a remote name, but I think in general "-" alone has always had a special meaning in UNIX world. We could put a new meaning to it (literal "-" directory can be specified with "./-"). Not totally sure if "-" is allowed in refspec though. -- Duy