Project management question

Hi there, I’m new to Unity and still learning the ropes, so forgive any remedial questions.

In my normal workflow of developing a program, I’ll go one direction and try a technique and some code, all the time, saving the project now and then as I proceed. Occasionally, I’ll hit a roadblock or change my mind about something, so I’ll load an earlier save (discarding the later work) and proceed in a different direction from there.

Is this workflow possible in Unity? I’ve been saving my progress as different “scenes,” but I noticed that if I load a previously-saved scene, some things are reset to the previous save, but not other things. For example, code isn’t restored - it’s the last code I entered.

Should I instead be saving different projects? Or is Unity just not amenable to letting you take “snapshots” of your projects?

Thanks!

Use source control.

–Eric