A list of frequently used git commands.

· · 1 year ago

Starting a Repo: init/clone/remote


Create a repo from existing data
git init

Clone a current repo
git clone

Clone a repo into current directory (should be an empty directory)
git clone (repo_url)

Create a remote repo named origin pointing at your Github repo (after you've already created the repo on Github) (used if you git init since the repo you created locally isn't linked to a remote repo yet)
git remote add origin [email protected]:username/(repo_name).git