I loved this back when I was first professionally using Git.
https://learngitbranching.js.org/
It simulates the repo in terms of branches and commits in a graph in the background and introduces every basic command. It also provides exercises in terms of "make A look like B" to prove you understand it.