Learn git
If you’re new to git or you just wanna brush up on things, go to https://learngitbranching.js.org/ and have a look. It’s an interactive graphical representation of a lot of the concepts including basics like committing code and branching to more advanced things like cherry picking