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.
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.
Do you want to add all file or folder in your github? So type git add --all
If you want to add anyone file so you can write git add YOUR FILE NAME
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
Then add a commit so type git commit -m "added file"
Check the branch name git branch It will show your branch name
Now type git push origin YOUR BRANCH it will add your file or folder in your github repository.
Comments
Post a Comment