git clone link-repository
: cloning locally (your machine) cloud repository;git status
: showing the modified files;git add
: adding modified files to the staged changes;git commit -m "YOUR_MESSAGE"
: saving/committing your changes locally;git diff
: seeing changes from modified files
note: you can also use VS Code to use a friendly interface. You can see how to do it clicking here.
git status
(To see the modified files - on red)git add FILE_NAME
(To add file to the staged changes. Remember to change FILE_NAME with the name of the file you have changed.)git status
(To see the modified files on staged changes - on green)git commit -m "YOUR_MESSAGE"
(To save/commit your changes locally. Remember to change YOUR_MESSAGE with the message that you wanna save with those changes.)git pull origin main
(To update your machine with changes from cloud - not required)git push origin main
(To update the cloud code (which it on GitHub))
Congrats! test 654321