3 ms·
I haven't used SVN but you can do this with git by using git add --patch. I do it every day!
by noman-land 6y ago
I haven't used SVN but you can do this with git by using git add --patch. I do it every day!
- greatgib 6y agoNo because you can't pull or push until your branch is clean or you have to stash everything.
- nhaehnle 6y agoPut uncommitted changes into a WIP commit (or multiple WIP commits), then fetch & rebase. Putting stuff in commits ASAP locally is good practice anyway, since it guarantees you will never accidentally lose your work.
- greatgib 6y agoSo it is exactly what i'm saying. You need 3 operations, that will completely change the state of your repo folder. with svn, it was common for me to have something with 50 files. Currently working on 5 files "v,w,x,y,z". I noticed a simple typo in file "c": modify "c", commit "c" 3 pending modifications in "f,g,h". commit "f" commit "g" commit "h" Someone ask me to correct something else in "c". svn up, correction and commit "c". then "svn up", just updating everything without messing with current work on "v,w,x,y,z". (no need to stash, or rebase, or anything as no one else touched them anyway) And let's suppose that i just want the new version file "k" without modifying everything in my current working folder: svn up "k" Good old time was as easy as that... even if git has its own advantages for some other cases.