[Expo-tech] Need to change back git URLs for server

Philip Sargent (Gmail) philip.sargent at gmail.com
Fri Jun 12 21:41:41 BST 2020


expo at expo.survex.com:troggle
failed for me in VS code

I had to go back to using 
expo at expo.survex.com:/home/expo/expoweb 
So while this may be because VS code is not fully compliant (I hardly think
so) or it is more likely that something else isn't set up quite right.

I haven't touched the web page 
http://expo.survex.com/handbook/computing/qstart-git.html  
to change it back to use /home/expo/  but we may need to.

Which is odd because the setting is in .git/config so both the command line
and VS code should be using the same thing.

-----Original Message-----
From: Wookey [mailto:wookey at wookware.org] 
Sent: 10 June 2020 03:40
To: Philip Sargent
Subject: git URLs for server

I think I just solved the mystery of the 'overspecified git URLs'.
i.e how we could no lponger just use:
ssh://expo@expo.survex.com/expoweb
and had instead to use:
ssh://expo@expo.survex.com:/~/expoweb/
or
ssh://expo@expo.survex.com:/home/expo/expoweb

well I just tried with:
expo at expo.survex.com:expoweb

and it works fine. That colon lets you use a relative path, as explain under
'GIT URLs' in man git-pull.
If it works on windows too we should probably just put this on the desc page
on http://expo.survex.com/handbook/computing/qstart-git.html (andywhere ulse
the URLs appear). Can you test please?


BTW you may not have found it yet, but it's much neater to do git fetch; git
rebase origin master than git pull; (which is git fetch; git merge) when you
have a local change and there are changes on the server. The former gives a
nice linear log rather than trivial merges. 


Wookey
--
Principal hats:  Linaro, Debian, Wookware, ARM http://wookware.org/




More information about the Expo-tech mailing list