This is good resource to learn the basic git commands. https://www.w3schools.com/git/git_intro.asp?remote=github
Clone the repository
git clone https://github.com/trevorcode/GitPracticeSite.git
and change directory into the project.
cd ./GitPracticeSite/
Create a new branch
git checkout -b "MyNewBranch"
Make your code changes
You can periodically use git status
to see what files have been changed.
Add files to be staged to commit
git add <filename or directory>
I tend to just do git add .
as it will add all the files I've changed in the folder.
You can do git status
again to check and see if they've been added correctly.
Commit to your local repository/branch
git commit -m "Here is my commit message"
Push branch
git push --set-upstream origin <Your Branch Name>
For example
git push --set-upstream origin MyNewBranch
Go to your branch on github and open a new Pull Request