/example-repo

These are notes on using git

example-repo

These are notes on using git

git clone URL OF THE REPO

NEVER CLONE A REPO INTO A REPO

modify or do something make changes -> make sure you save !

git add . or file name or -A -> adds to staging

git commit -m "meaningful message help you out later on"

git pull origin main / working in a team

git push origin main

git status -> tells you what is going on


Branches

git checkout -b NAME OF THE BRANCH -> CREATE AND TAKE YOU TO THAT BRANCH

git checkout ->take you to a branch git add & commit git push origin NAME-OF-THE-BRANCH