Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
I’ll list the most common command down below.
You can find more information at git cheat sheet
$ git status # Show the working tree status
Here is an example to learn how to use these command.
Picture from: https://git-scm.com
Add a file at your repo , in this toturial I create
git-test.py at my repo.
This will list all new or modified files to be commited, you can know which file you change or not be tracked.
$ git status
Then add the file you want to track.
$ git add git-test.py
See the difference between original status and the current status.
$ git diff
Q if you want to quit the diff listing.
All file are prepared, then you have to commit this change to the repo.
$ git commit -m "<Commit Message>"
Check your commitment.
$ git log
Reset current HEAD to the specified state.
HEAD can change to
$ git reset HEAD^ # reset HEAD to previous version
I think the fastest way to learn
git is to try it your self !