Go back

git init

initializing new git repository (locally)

git add .

staging all files to be stored in the reop

git commit -m ‘commit message’

committing changes to repo

github

git remote add origin [<https://github.com/LouraHassan/practice12.git>](<https://github.com/LouraHassan/practice12.git>)

connecting git local repo with github repo

git branch -M main

specifying that the main branch should be named ‘main’

in some cases it can be named ‘master’ but running this command will rename it to ‘main’

git push -u origin main

pushing the changes from the main branch

it new changes make to the project :

git add .

git commit -m ‘commit message’