From 37498322c6e75469ea13b1c9420ddf5b94738157 Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 2 Jun 2020 13:27:28 +0100 Subject: [PATCH] Small change to git.md, added some codeblocks --- git.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/git.md b/git.md index 0aafa50..509bf6a 100644 --- a/git.md +++ b/git.md @@ -1,18 +1,20 @@ # Create a GitHub repository and setup with terminal Initialise the local repo - git init + `git init` Add a file to the repo, in this case the file was "git" - git add git + `git add git` Commit to the repo, with a message - git commit -m "Commiting the empty repository to GitHub" + `git commit -m "Commiting the empty repository to GitHub"` Add the local repo to the GitHub repo - git remote add origin https://github.com/SirAney/references.git + `git remote add origin https://github.com/SirAney/references.git` Push the commits from the local repo to the GutHub repo - git push -u origin master + `git push -u origin master` # Pull a repo from GitHub to local machine git init git pull http://github.com/USER/REPO +or + `git clone https://github.com/USER/REPO' # Commit new changes to the repository git add file