Basic usage of Git
I will leave the detailed usage for you to look up, but here I will give a rough overview of the actual operations.
Git is generally operated through Git Bash on Windows (installed together with Git) and through the terminal on macOS and Linux. (I will refer to both simply as the terminal here.)
There are GUI tools that may feel more familiar, but once you get used to it, using Git from the CUI is extremely convenient, so I recommend starting with the CUI from the outset.
You should get the hang of it within an hour.
First, to start managing files with Git, create a local repository.
Begin by moving to the directory you want to manage with Git in the terminal.
Then,
git init
Entering this sets you up for version control with Git.
Next, to record changes in the staging area,
git add ファイルパスもしくはディレクトリパス
Running this registers the specified file in the working tree to the staging area.
Next,
git commit
This commits the files in the working tree.
To check which files are currently in which state, run
git status
Run this command.
The commit history can be checked by
git log
running this command.
Basically, the workflow is to run git add, then git commit to create a change record, and use git status to check the current state whenever you run into trouble.