To commit, as it seems to me impractical
The git was created precisely to make commits and to do them often. You can take commits as saving in a dangerous shooter - you can save in every convenient situation, in front of every corner and door. And do not make a bagel from the design, in which a mistake will lead to the fact that you need to start all over again. Just try to preserve meaningful names, otherwise they will be useless. Limits you only disk space (which is spent quite effectively, there is compression and reuse).
Let's say I'm not sure exactly which way to go next so that you can return to this state, or just a backup copy of the case of failure)
Backup - each commit is a backup.
git add <ΠΈΠΌΠ΅Π½Π° ΡΠ°ΠΉΠ»ΠΎΠ² ΠΈ ΠΏΠ°ΠΏΠΎΠΊ> git commit -m'ΠΊΠ°ΠΊΠΎΠ΅-ΡΠΎ ΡΠΎΠΎΠ±ΡΠ΅Π½ΠΈΠ΅, ΠΎΡΡΠ°ΠΆΠ°ΡΡΠ΅Π΅ ΡΡΡΡ ΠΊΠΎΠΌΠΌΠΈΡΠ°'
View the commit history and select one:
git log
Return to the desired commit / status:
git checkout <sha1 ΠΊΠΎΠΌΠΌΠΈΡΠ°> git checkout <ΠΈΠΌΡ Π²Π΅ΡΠΊΠΈ>
Which way to go further - create a branch, it is an alternative way.
git branch new-branch-name
to control library versions
When your library reaches release status, you can make another commit and mark it with a tag
git tag Release-1.0