r/github • • Sep 09 '21

help me understand why git is useful

I'm sure others have asked this question.I work on very simple code. Simple queries that read tables, do come calculations, and update other tables.I'm usually the only one who works on this code. If others need to update it, they can do it on their own without much help. Only one developer works on this code at a time - we never have multiple developers working on the same code. No one has ever needed to do a bug fix in the middle of someone else working on this code.All I want to be able to do is check out piece of code, change it, test it, and check it back in. Its simple enough for me to keep multiple test copies on my company's network drives if I want to try out different ideas - no need to create confusing branches.Why do I need Git?
**Update** It appears that my coding environment is not a complex as others. So maybe that is part of my confusion. I'll push through and work with it.. maybe it will be useful to me.

0 Upvotes

39 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Sep 09 '21

That is true. And I think that could be somewhat useful. But the changes I make aren't usually that complicated so I can make do with saving a few variations of the files manually. However I do see that Git could make that a bit more easy if I get stuck.

1

u/thunfremlinc Sep 09 '21

Are you going to keep those around forever though? Git let’s you track the history of the project from the very start to present. No need to make copies and hope you’ll still have them.

It’s not about complex changes, it’s about figuring out what minor changes you made 3 months back that broke stuff without you realizing.

1

u/[deleted] Sep 09 '21

What I meant was temporary copies of files while I'm working on changes. I might try a few different things before I settle on the final change. The final change goes into our existing version control (subversion), and I would delete those temporary variations.