- Clone a repository to a local computer (clone the whole repository).
git clone url
cd folder
- Choose a branch.
git checkout branch_number
- Check its status.
git status
-
Edit some file and check the status again.
-
Track the modified file (to include in what will be committed). '.' means all files.
git add .
- Save the change with a message.
git commit -m "some message"
- Push the change to the online repository.
git push
- The owner the repository checks to the pull request and merges it into the master branch.