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 +```