cd
-> [C
hangeD
irectory] used the navigate through the computer foldersls
-> [L
iS
t Directory] used to list the contents of the current directorypwd
-> [P
rintW
orkingD
irectory] used to display the current directory pathmkdir
-> [M
akeD
irectory] used to create a new directorymv
-> [M
ove] used to move files from one directory into anothercp
-> [C
oP
y] used to copy files from one directory into another
git init
-> used to initialize a new git repository inside a foldergit add .
-> used to add all the files in the current diretory into the gitstage area
git commit -m 'message'
-> used to create a commit with all the files currently on thestage area
git push origin main
-> used to push all commits to the origin server (usually github) for themain
branchgit pull origin main
-> used to pull all the changes from the origin server (usually github) for themain
branchgit status
-> used to check the current status of the git repository
cd ~/Documents/GitHub
mkdir your-project
cd your-project
git init
open .
git add --all
git commit -m 'message'
https://github.com/new
9.3 Run the instructions on the Github screen on the section "...or push an existing repository from the command line"
in your termal
git remote add origin [email protected]:raul-gracia/your-project.git
git branch -M main
git push -u origin main