Before cloning the repository ,you need to fork it first Creates a local copy of a remote repository.
git clone <repository_url>
Creates a new branch and switches to it.
git checkout -b <branch_name>
Lists all branches in the repository.
git branch
Switches to the specified branch.
git checkout <branch_name>
Displays the current status of the working directory.
git status
Stages a specific file for the next commit.
git add <filename>
Stages all modified files in the working directory for the next commit.
git add .
Records changes to the repository with a commit message.
git commit -m "<commit_message>"
Pushes the local branch to the remote repository and sets the upstream branch.
git push --set-upstream origin <branch>
Displays a log of commits.
git log
Complete Git and GitHub Tutorial
Common git commands
Complete Git and Github Course