GitHub is great for small changes
Cloning allows you to work locally for complex changes involving multiple files
Work on repos from any local machine
Use the command line or your favorite IDE for Git actions
Image credit: https://jaisriram.hashnode.dev/how-to-clone-a-github-repository-to-local-machine
On GitHub, navigate to the main page of the repository.
Above the list of files, click Code.

Copy the URL
In command line: Type git clone, paste the URL you copied, and hit enter
git clone https://github.com/YOUR-USERNAME/YOUR-REPOSITORYIn IDE or GH Desktop: find the clone function and paste the URL
Clone: copy remote repo to local environment
Pull: synchronize changes in remote repository to local
Fetch: retrieve commit history, but doesn’t sync changes
Push: send changes from local up to remote
Stage: add changes to be committed
Commit: save staged changes and record to history
Stash: temporarily save uncommitted changes
Checkout: create or switch to a branch
Merge: merge committed changes from a branch into another
Rebase: pull changes from a remote into a local repository while “rewriting” the commit history

U.S. Department of Commerce | National Oceanic and Atmospheric Administration | National Marine Fisheries Service