In order to avoid forgetting how to commit my code to GitHub, I will write down the process as a memo.
Commit to New Repo
- Open the Terminal (on the VS code)
- Going to directly that you would like to commit (write "cd" and just drag and drop the file that you want to commit)
- Write below on the Terminal
1. git init
2. git remote add origin (URL from git Repo)
3. git add .
4. git commit -m 'first commit'
5. git push origin master
To change the Contents
1. git add .
2. git commit -m 'first commit'
3. git push origin master