Skip to content

Latest commit

 

History

History
55 lines (37 loc) · 1.26 KB

repo-setup.md

File metadata and controls

55 lines (37 loc) · 1.26 KB

Repository setup commands

git clone

This command copies a remote repository into your local machine.

Useful forms

git clone <URL>
Copies the repository at the URL into a local directory
Assignment 1

Create a local clone of the your forked repo and navigate to it.

git status

This command provides useful information about the state of your repository.

git log

Shows you a list of commit messages for the current branch.

git remote

This command helps you manage your remote repositories.

Useful forms

git remote -v
Shows a list of remote repositories.
git remote add <name> <URL>
Adds a remote repository at the specified URL. This repository can be referenced using the name provided.
git remote rm <name>
Deletes the remote repository identified using the given name.
Assignment 2

Add the original repository as a remote and verify by listing your remote repositories.


Next lesson: Basic workflow commands