From 9dd24919a53eb68de1ac69e9ad4d4eff2a0f1638 Mon Sep 17 00:00:00 2001 From: James Skemp Date: Mon, 6 Sep 2021 16:19:02 -0500 Subject: [PATCH] Add git init to getting started --- src/getting-started.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/getting-started.md b/src/getting-started.md index eb1905b..9579386 100644 --- a/src/getting-started.md +++ b/src/getting-started.md @@ -4,6 +4,11 @@ git clone _.git git clone _.git differentFolderName +# Create a new repository in the current directory. +git init +``` + +```bash # Add a new remote for a repo. In this case 'upstream' might be helpful for the repo this was forked from. git remote add upstream _.git @@ -13,9 +18,12 @@ git branch # Switch current repo to a different, existing, branch. git checkout git checkout master +``` +## Clone troubleshooting +```bash # If running into issues cloning a repository, clones a shallow copy. Then updates remotes and fetches everything. git clone --depth=1 _.git git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*" git fetch --unshallow -``` \ No newline at end of file +```