Re: [AD] switching to git, 2012 edition |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Sat Jun 23, 2012, Peter Wang wrote:
> On Sat, 23 Jun 2012 15:20:31 +0200, Elias Pschernig
<elias.pschernig@xxxxxxxxxx> wrote:
> > Can we get git also for the main repository? :) (It feels awkward doing
> > a git clone for testing here and then have the useless and slow svn
> > checkout of the 5.0 branch right next to it... gives me such an urge
> > to delete it :P)
>
> Alright, let's try another tack:
>
> Yes.
>
> Now wait for the objections to roll in.
>
> Peter
>
I don't mind one bit.
I only really know of one objector.
To (hopefully) preempt that though, the following commands are the most useful
(used):
git clone http://repo/here (svn checkout http://repo/here)
git pull branchname (svn update branchname)
git commit -a
git push (svn commit <-- combination of push and commit in git)
git branch newbranchname (svn cp branches/oldbranch branches/newbranch)
git checkout newbranchname (svn co branches/newbranch)
at least I assume you can switch to a branch like that in svn, its been so
long. If not, it means you have to commit the new branch to the repo, and then
do a full checkout of the new branch. which is not very nice.
after that theres merging, which are less useful for a regular contributor,
but more useful for someone managing multiple branches and releases.
and of course theres things like:
git log
git diff
etc.
For the most part git and svn are pretty close. but git is a bit smarter,
faster, and has more features.
--
Thomas Fjellstrom
tfjellstrom@xxxxxxxxxx