How to commit part of file in Git
11–20 of 104 posts
Re: How to commit part of file in Git
#12The only sane way to do this is with a proper IDE. Doing it via the command line is pure masochism.
Re: How to commit part of file in Git
#13Splitting up commits is totally underrated and seen rarely. I see colleagues over and over again plumbing 4 kinds of changes into the same commit. Good luck reverting the one change that caused an outage.
Re: How to commit part of file in Git
#14Re: How to commit part of file in Git
#15The only sane way to do this is with a proper IDE. Doing it via the command line is pure masochism.
Why? I use git add -p absolutely all the time, its really simple to learn
Re: How to commit part of file in Git
#16Re: How to commit part of file in Git
#17Splitting up commits is totally underrated and seen rarely. I see colleagues over and over again plumbing 4 kinds of changes into the same commit. Good luck reverting the one change that caused an outage.
People will actually revert commits? For real? At work? Where do I get to sign up?
Re: How to commit part of file in Git
#18Earlier quoted context omitted.
People will actually revert commits? For real? At work? Where do I get to sign up?
Relatively common practice where I work. What do you do instead?
Re: How to commit part of file in Git
#19Re: How to commit part of file in Git
#20I've used tig to do this for 15+ years. It's effortless. I know lazygit is more modern and has more features, but tig does this so well I have no need to change.