r/github • • Nov 17 '20

Cute

Post image
642 Upvotes

22 comments sorted by

View all comments

2

u/g_younes Nov 18 '20

Wait, are we supposed to do something else?

4

u/ThunderChaser Nov 18 '20

If it’s a solo project it’s usually fine.

If you’re working on a larger open source project (or your job) you should almost never push directly to master (and usually you won’t even be allowed to)

3

u/g_younes Nov 18 '20

Oh okay makes sense now. I was half joking half asking - but really that's the first thing I did on github, and I was afraid it might be bad for other reasons. All alone for now so no problems!

2

u/DragoSpiro98 Dec 06 '22

The main problem is conflicts, if it's you alone then no conflicts, because no one else modifies the code, but if you work in team and multiple people are working in different parts, if you push into master, you will have conflicts on each push, if instead you create a branch, work on that and then merge to master, at most you will have a conflict at the end (because you merge only one time)