This is a list of git commands for quick reference. Kindly refer to other git tutorials if you are not familiar…