beginner user here trying to learn git. I was writing a simple program, using checkout -b and commit -m with a note, to 'save' my progress along the way. I used status and branch to check and see that the branches were being made, but i closed the terminal. Now i use git status and it says i am on a branch but lists 'no commits yet' underneath. THe JS i have been writing along the way is still there. 

Should i be using commit A every time i use commit M? I cant tell if I am having an issue because I am starting up wrong or saving my branches wrong.