- Add new file file.php
- Add some text to file and save.
- Stage file to git $ git add file.php
- Commit file and add message $ git commit -m "Added new file to repo."
- Push file to GitHub $ git push origin
- $ git st // To check which files have been changed
- $ git diff file.php // To check diff
- $ git add file.php // Stage file before commiting
- $ git commit -m "My message" // Commit file (5. $ git push origin // Push to GitHub)