From 6ae7655d99e61fc9d877203f1ce4e0b291ea4d24 Mon Sep 17 00:00:00 2001 From: nathan Date: Mon, 1 Jun 2020 18:20:12 +0100 Subject: [PATCH] Change to git; How to create a repo and add to GitHub --- git | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/git b/git index e9be2cf..4338ebd 100644 --- a/git +++ b/git @@ -1 +1,15 @@ +" Create a GitHub repository and setup with terminal + +" Initialise the local repo git init +" Add a file to the repo, in this case the file was "git" +git add git +" Commit to the repo, with a message +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 +" Push the commits from the local repo to the GutHub repo +git push -u origin master + +" Commit new changes to the repository +