Re: [AD] Fw: SourceForge Repo Clone Complete

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Wed, Oct 10, 2012 at 08:21:55PM +0200, Elias Pschernig wrote:
> The easiest way to update is to open the .git/config text file
> with your favorite text editor and just update the URL for the
> "origin" remote.

Arguably the easiest way is with git-remote:

  git remote set-url $name $url

If you didn't specify a name yourself (i.e., you just cloned)
then it is likely named origin.

You can also use git-config since it is just a config option:

  git config remote.$name.fetch $url

Of course, a text editor is a good solution for anybody
unfamiliar with the config file since it is beneficial to
understand how simple it all is (in the event that you manage to
break it).

You can check the current URLs with:

  git remote --verbose

Note that the fetch and push URLs can be different, though odds
are if you have that then you already know what you're doing (you
usually don't need it). :)

Regards,


-- 
Brandon McCaig <bamccaig@xxxxxxxxxx> <bamccaig@xxxxxxxxxx>
Castopulence Software <https://www.castopulence.org/>
Blog <http://www.bamccaig.com/>
perl -E '$_=q{V zrna gur orfg jvgu jung V fnl. }.
q{Vg qbrfa'\''g nyjnlf fbhaq gung jnl.};
tr/A-Ma-mN-Zn-z/N-Zn-zA-Ma-m/;say'

Attachment: signature.asc
Description: Digital signature



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/