On Thu, Jun 16, 2016 at 5:43 PM, Jeff King <peff@xxxxxxxx> wrote: > On Thu, Jun 16, 2016 at 03:44:17PM +0530, Saksham Saxena wrote: > >> Summary : Added a new rule to the local config of a git repo by >> issuing ' git config --local url."https://".insteadOf git:// ', but it >> wasn't observed by git as it kept using "git://". > > Hmm. This works in a simple example for me... > >> Details : I had set my global config to use "git://" instead of >> "https://", as I prefer working with SSH. > > ..even if I have an existing "url.git://.insteadOf=https://". But I > could believe that having other config confuses things. The > url-rewriting is not "last one wins", but rather that we try all of > > > them, and the longest match wins. Longest? Could you elaborate please? > > Can you show us the output of "git config --list" on a repository that > is having this problem, and then the command that you run and its > > > output? Here you go (https://gist.github.com/sakshamsaxena/a1cee9c39ddc127ae659e92d02d58f0b). The commands are run in that sequence. > >> Recently, I began writing a >> 'GitHub Wiki' of one of my GitHub projects, and, apparently, those >> Wikis are normal git repositories, and can be cloned and edited >> locally. However, the clone url available is served over HTTPS only, >> and doesn't support any other protocol. > > You should be able to clone, fetch, or push wiki repositories using any > of the normal protocols. So: > > git@xxxxxxxxxx:username/repo.wiki.git > > should work. Likewise, git:// will work if the repository is public, but > > > you cannot push over it. True. Can't push over git:// and that's why I'm limited to https:// > > -Peff -- Regards Saksham Saxena Member, IEEE Delhi Section Student Network Member, IEEE DTU Student Branch Student, Delhi Technological University -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html