Skip to content

Instantly share code, notes, and snippets.

@andyduke
Forked from loretoparisi/github_quick_setup.md
Last active April 23, 2022 09:39
Show Gist options
  • Select an option

  • Save andyduke/7b1b3b064c84bac85871a452397c9980 to your computer and use it in GitHub Desktop.

Select an option

Save andyduke/7b1b3b064c84bac85871a452397c9980 to your computer and use it in GitHub Desktop.
Github Quick setup — if you’ve done this kind of thing before

Get started by creating a new file or uploading an existing file. We recommend every repository include a README, LICENSE, and .gitignore.

…or create a new repository on the command line

git init
git add README.md
git commit -m "first commit"
git branch -M master
git remote add origin https://github.com/<path_to_repo>.git
git push -u origin master

…or push an existing repository from the command line

git remote add origin https://github.com/<path_to_repo>.git
git branch -M master
git push -u origin master

…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