Git steps¶
Routine in short (just four commads!)¶
- Sync on GitHub.
git pull(orgit cloneif new VM)git add .git commit -m "message"git push
Rules¶
- Run all commands in the terminal of the VSCode. Press
ctrl + ~if you lost it. - Use
git statusbefore and after you run each command to see what is going on,
Beginning of the session¶
- Sync your fork with the course repo at GitHub.
git pullto get the changes from GitHub.- If the device doesn't have your project yet, then:
git clone https://github.com/your_account_username_here/JTKJ-PicoRTOS-Project.gitOpen folder JTKJ-PicoRTOS-Project in VSCode and work on the tasks.
End of the session¶
git add .to prepare changes you worked on for commitng.git commit -m "describe changes here"to commit your changes locally.- If Git asks who are you?:
git config --global user.email "your_github_email"git config --global user.name "your_name"- Commit again.
git pushto push the changes to the remote (your repo at GitHub).