Kaleb’s Git Notes¶
Git Notes¶
Move to the the folder that your project is located in and set up Git using:
$ git init
Add the files you want to add. Use “.” to add all files
$ git add .
Save the changes for your files with a message
$ git commit -m "[Insert Message Here]"
Add the URL where the server is located in
$ git remote add origin [URL]
Set the branch to main or whatever it’s called
$ git branch -M main
Push the changes to the server
$ git push -u origin main