If you have trouble grasping the key points of working with a Git repository from the console, you can always use a graphical client. One of them is Lazygit, a semi-graphical client written in Go using the library gocui.
In the official description of the program, the author explains how difficult it can be to understand what and how to do in Git when there are multiple branches or commits, and how helpful his client is in sorting things out. I think there's no point in describing all the features of the program, as what else can be said about Git other than "it allows you to commit, merge, and so on"?
Just take a look at the picture with an example of its operation, and all questions will be answered.
>>> The gocui library (BSD 3-Clause "New" or "Revised" License)
>>> Tutorial video
Source: linux.org.ru

