- Make a folder for the project
mkdir project_name
-
Write the program
-
Initialize the git repo
git init
- Add the changes
git add .
- Commit the changes
git commit -m"commit messages"
-
Setup github repo
-
Link the github repo to the local git repo
git add remote xxxxxxx
- Push the changes
git push -u origin main
-
Update the program
-
Add the changes
git add .
- Commit the changes
git commit -m"commit messages"
- Push the changes
git push -u origin main
- Goto step 9