I know I can use git remote set-url origin to change the URL of a remote repo? On my Linux machine I run something like
git remote set-url origin ~/projects/test.git
but git always changes the relative path into an absolute one such as /home/user/projects/test.git.
Can I prevent this behaviour?
~/projects/test.gitisn't what's usually known as a relative path. A relative path is more something like:../file, orsubdir/file.projects/test.gitis relative to~, but the resulting path is no less absolute.