Skip to content

Instantly share code, notes, and snippets.

@wdpm
Created December 15, 2020 07:37
Show Gist options
  • Select an option

  • Save wdpm/a2eef743a6e9eaa7c76985e678786e7e to your computer and use it in GitHub Desktop.

Select an option

Save wdpm/a2eef743a6e9eaa7c76985e678786e7e to your computer and use it in GitHub Desktop.
Quick setup after github new repo

…or create a new repository on the command line

echo "# expert-goggles" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin git@github.com:wdpm/expert-goggles.git
git push -u origin main

…or push an existing repository from the command line

git remote add origin git@github.com:wdpm/expert-goggles.git
git branch -M main
git push -u origin main

…or import code from another repository

You can initialize this repository with code from a Subversion, Mercurial, or TFS project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment