DEV Community

Discussion on: When to make a Git Commit

Collapse
 
gregorgonzalez profile image
Gregor Gonzalez

I like your approach. I started that way, then one day a hard drive got broken and I lost everything. Now I commit and push almost every 20-30 minutes on a non-production branch

Collapse
 
gonedark profile image
Jason McCreary

You should not change your approach because of one edge case.

Collapse
 
gregorgonzalez profile image
Gregor Gonzalez

I know but first was the HDD, then a short circuit that started a fire (the pc burned), then the pc was stolen (second time in a series of 6 robberies) I trust more on my thumb-drive xD

Now I do as many copies that I can. I'll try the rebase comments. Just wanted to use the best process

Thread Thread
 
techniponi profile image
Cameron Seid

sounds more like you should move to a nicer neighborhood lol

But really though, cloud storage is your friend. Nextcloud also exists if you would prefer to self-host - alternatively, if you're doing something with a lot of small files that get updated constantly, consider directly mounting a remote filesystem instead (lots of sync clients will trip over a high density of file changes per second)

Thread Thread
 
gregorgonzalez profile image
Gregor Gonzalez • Edited

now we have security Guards and surveillance cameras ;)

Ohh why I didn't think of that? Yes, that's a really nice solution. I'll have a backup and keep commits organized