Sometimes you want to make changes to your SFM file that may or may not be permanently done in the file to eventually imported. You can use a feature of Git called branching to make tentative changes to your import project. Details are not presented here, but there are many resources on-line including the section of the video referenced below, starting at 32:42.
If you haven't pushed your commits to a remote repository, you can make changes to previous commits.
The amend option allows you to modify committed changes and edit the commit message in your most recent commit.
Git also has a rebase command that allows you re-order, merge, split and modify commits other than the most recent ones. If you have pushed commits to a remote server, you should not consider them eligible for changes. The use of the rebase command is beyond this rudimentary description of Git.
The following Youtube video is a useful introduction to Git, and Github. It explains git as a system for tracking computer source files, but the concepts are applicable to tracking the SFM and control files of a FLEx import.
Youtube video Git and GitHub for Beginners - Crash Course
Here are the contents of that video:
(0:00) Introduction
(1:10) What is git?
(1:30) What is version control?
(2:10) Terms to be learn in video
(5:20) Git commands
(7:05) sign up in GitHub
(11:32) using git in local machine
(11:54) git install
(12:48) getting code editor – skip
(13:30) inside VS Code – skip
(14:30) cloning through VS Code – skip
(17:30) git commit command
(18:15) git add command
(19:15) committing
(20:20) git push command
(20:30) SSH Keys
(25:25) git push
(30:21) Review workflow so far
(31:40) Compare between GitHub workflow and local git workflow
(32:42) git branching – Explains the use of
(56:30) Undoing in git
(1:01:50) Forking in git
(1:07:55) Ending