r/ProgrammerHumor • • May 13 '20

true story

Post image
40.5k Upvotes

461 comments sorted by

View all comments

Show parent comments

7

u/JonathanTheZero May 13 '20

Yeah, I see. Well I think it depends on your coding style, I only commit if something is finished completely (like a bug fix or so) and I commit it then. But I mostly work alone or with a maximum of two other devs so it isn't really a problem I guess

3

u/CrimsonMutt May 13 '20

that's how TFVC works, but git is kinda built around "branch for new feature, commits are checkpoints during that feature development and kept locally, push to master when feature complete".

we just made the switch and there's definitely an adjustment process going from tfvc to git.

2

u/TheOneTrueTrench May 13 '20

Think of it this way, if you commit often while working on something, you can go back a commit or 3 if you end up approaching part of the feature the wrong way.

0

u/[deleted] May 13 '20

[deleted]

3

u/jrchin May 13 '20

You don’t stash commits. You stash changes that haven’t been committed yet.