Skip to content

Git Commands

Divyank Shah edited this page Sep 27, 2022 · 1 revision

Use the following command to create a new branch and checkout to said branch.

git checkout -b <branch_name> 

OR

git branch <branch_name>
git checkout <branch_name>

Use the following command to track all files for git to keep track of.

git add .

Use the following command to commit your changes! Note: this will not push code to your remote branch!

git commit -m "useful_message"

Use the following command to push your changes to your remote branch!

git push origin <branch_name>
Clone this wiki locally