Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 592 Bytes

How to use git on a local computer.md

File metadata and controls

34 lines (27 loc) · 592 Bytes
  1. Clone a repository to a local computer (clone the whole repository).
git clone url     
cd folder
  1. Choose a branch.
git checkout branch_number
  1. Check its status.
git status
  1. Edit some file and check the status again.

  2. Track the modified file (to include in what will be committed). '.' means all files.

git add . 
  1. Save the change with a message.
git commit -m "some message"
  1. Push the change to the online repository.
git push
  1. The owner the repository checks to the pull request and merges it into the master branch.