[TYPO3-dev] GIT for "normal" (TortoiseGIT-) users

Stefan Geith typo3dev2010.nospam1 at geithware.de
Tue Mar 8 12:49:31 CET 2011


Am 08.03.2011 12:36, schrieb Steffen Gebert:
>> Question 1:
>> If I simply want to follow the changes of 4.5.x-dev
>> [...] Or is it "Git pull" ?
> I think "Sync" is an invention of TortoiseGit. I assume it pulls and
> pushes. Pull is the step to retrieve changes.

Thanks.

>> Question 2:
>> When I modify the 4.5 sources locally:
>> What do I have to do ? I think "Git Commit" - right ?
>> [...]
> Exactly.

Thanks

Sometimes its good to have even the simpliest things acknowledged ;)

>> Question 3:
>> Until now, I used SVN. My local copy is still at
>> Rev. 10669, the latest version of
>> https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-5
>> But I have applied there many patches and changes.
>> How do I get my local (svn-) changes to the git clone ?
>> I already created a patch of all changes via TortoiseSVN,
>> but I can't find a way to apply this patch to the
>> Git clone ...
> Git apply is pretty careful. I suggest using the patch command in the
> Git Bash (sorry for nudging you to the command line..).
> * Go to the repository directory
> * Execute `patch -p0 --dry-run -i patchfile.diff`
> * If it works out, remove the --dry-run

This worked - thanks !
(When I know, what to do, I like the command line ...)

> The difference between svn and git patches is that by default svn
> doesn't prefix any path (all references start with typo3/):
> --- typo3/... (rev 1234)
> +++ typo3/... (working copy)
> while git adds a/b prefixes for version a and version b
> --- a/typo3/...
> +++ b/typo3/...
> The -p parameter enables you to strip N directory levels while applying
> a patch.

Thanks for explaining.

/Stefan





More information about the TYPO3-dev mailing list