Use Git and GitHub


A collection of commands for reference Link to heading

Configure git.

git config --global user.name "<name>"
git config --global user.email <email>
git config --list

Clone a repository to the local machine.

git clone https://github.com/MyUsername/MyRepository.git

Add GitHub remote management to the repository.

git remote add origin https://github.com/MyUsername/MyRepository.git

Show remote repositories.

git remote -v