Skip to content

Instantly share code, notes, and snippets.

@alisolanki
Last active April 24, 2020 21:15
Show Gist options
  • Select an option

  • Save alisolanki/b09ac03f4069ee24c4d88f1dfef0a33d to your computer and use it in GitHub Desktop.

Select an option

Save alisolanki/b09ac03f4069ee24c4d88f1dfef0a33d to your computer and use it in GitHub Desktop.
This is a git command line for initializing GitHub Repository

1. Download git from https://git-scm.com/downloads

2. Make an empty repository in your github profile.

3. Open your root folder of the project you wish to initialize.

4. Open Command Prompt / Terminal in that directory.

5. Copy the following code in your Command line:

git init
git remote add origin https://github.com/username/repository_name //Your repository path
git add -A
git commit -m "first commit"
git push -u origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment