Create a github repository using terminal or command

 How to crate a Github repository using terminal or command?


If you want to crate a repository in your github account. So first you will open your terminal or command. Then go to folder so type cd [YOUR FOLDER NAME] in terminal or command. 

  1. Then type git status  . If here show your file name or folder name color red so this file or folder is not add your github.

  2.  Do you want to add all file or folder in your github? So type  git add --all         

  3. If you want to add anyone file so you can write git add YOUR FILE NAME

  4. Check the status in terminal. Type git status  if here show your file name or folder name color green so this file or folder is added in your github

  5. Then add a commit so type git commit -m "added file" 

  6. Check the branch name git branch It will show your branch name

  7. Now type git push origin YOUR BRANCH  it will add your file or folder in your github repository.

Comments