Skip to content

Instantly share code, notes, and snippets.

@gzagatti
Created March 4, 2016 08:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gzagatti/9d3b6faa6fe7d79948f4 to your computer and use it in GitHub Desktop.
Save gzagatti/9d3b6faa6fe7d79948f4 to your computer and use it in GitHub Desktop.
Creating a github repo from the command line and setting up https protocol
  • create a repo via the command line: hub create
  • it's possible to connect with github via a number of protocols, like ssh and https. In order to have https as the default: git config --global hub.protocol https
  • in order to push to a given repo once 2FA is activated via https, it's necessary to generate an access token and use that as the password instead of the login password for the user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment