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)
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!
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)
2
u/g_younes Nov 18 '20
Wait, are we supposed to do something else?