Git Tips And Workflows
durdn.com
Git Tips And Workflows
1–10 of 40 posts
Re: Git Tips And Workflows
#2Re: Git Tips And Workflows
#3Edit: there's a `git diff` tip in there, but this comes up a few times so if anyone needs to do patches from git for svn repos do `git patch --prefix=none $DIFF1 $DIFF2 > some.patch` share and apply with `patch -p0 < some.patch`.
Re: Git Tips And Workflows
#4Curated eh?
They're actually pretty good tips, "curated" or ... not - however that would work.
Re: Git Tips And Workflows
#5There's another way to do this:
git checkout --orphan new-branchRe: Git Tips And Workflows
#6Re: Git Tips And Workflows
#7I was not aware of the `git config` option for wrapping long files, worth the price of admission just for that for me. Edit: there's a `git diff` tip in there, but this comes up a few times so if anyone needs to do patches from git for svn repos do `git patch --prefix=none $DIFF1 $DIFF2 > some.patch` share and apply with `patch -p0 < some.patch`.
git diff REV1 REV2 >some.patch
patch -p1 Re: Git Tips And Workflows
#8I was not aware of the `git config` option for wrapping long files, worth the price of admission just for that for me. Edit: there's a `git diff` tip in there, but this comes up a few times so if anyone needs to do patches from git for svn repos do `git patch --prefix=none $DIFF1 $DIFF2 > some.patch` share and apply with `patch -p0 < some.patch`.
Or just: git diff REV1 REV2 >some.patch patch -p1
Re: Git Tips And Workflows
#9>> Zero a branch to do something radically different There's another way to do this: git checkout --orphan new-branch
Re: Git Tips And Workflows
#10I was not aware of the `git config` option for wrapping long files, worth the price of admission just for that for me. Edit: there's a `git diff` tip in there, but this comes up a few times so if anyone needs to do patches from git for svn repos do `git patch --prefix=none $DIFF1 $DIFF2 > some.patch` share and apply with `patch -p0 < some.patch`.
git diff --no-prefix $OLD $NEW
...where $OLD and $NEW are the two commits you want to diff.