Skip to main content

Commit from Command Prompt (cmd)

--> Adds new files to git staging area: git add .

--> Commit the changes with new commit message: git commit -m "[commit message]"

--> Confirm the commit, aka PUSH to GitHub: git push origin [banch name]

Sample Commands

D: ASUS> git add .

D: ASUS> git commit -m "Initial Commit"

D: ASUS> git push origin main


Fetch and download content from Remote Repository (GitHub) to your Local System (git pull)

--> Pulls updated files to local system: git pull

Sample Command

D: ASUS> git pull