Skip to content

Instantly share code, notes, and snippets.

@MaraAlexa
Created November 8, 2017 10:33
Show Gist options
  • Save MaraAlexa/c3afc3fde11c1ffcf4bf2938e84c06c7 to your computer and use it in GitHub Desktop.
Save MaraAlexa/c3afc3fde11c1ffcf4bf2938e84c06c7 to your computer and use it in GitHub Desktop.
connect git with github
// initiate git (local new repo)
git init
// save all the files in your new local repo
git add .
// commit them
git commit -m "First commit"
// connect git with github repo
git remote add origin (paste cloned github url)
// Verify the new remote URL
git remote -v
// Push the changes in your local repository up to the remote repository you specified as the origin
git push -u origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment