HOW TO CREATE A GITHUB REPOSITORY

HOW TO CREATE A GITHUB REPOSITORY



  • First You will have to download the git software from here and install it


  • After installing git go to Your profile section in gtihub and click on repositories


  • Click new to create a repository


  • Name your repository and click create


  • Open the folder that contains your project files in vs code or any IDE


  • Open terminal and type "git init" command (this command initialise a github repo in the folder)


  • In the repository page you created copy the repo link


  • Go back to terminal and type "git remote add origin" command and past the link you copied


  • Then type "git add *" command (the add commmand stage all files in the folder to commit after)


  • Then type " git commit -m 'type your commit message here' " command


  • Next type " git config --global user.name your_name_here "command


  • Then " git config --global user.email your_email_here " command


  • Now type "git push origin master" command to upload all the files to github


  • Go back and refresh the github repository page and you will find all your project files there



Good job reaching this far now you can go and explore the various cool things github offers.


要查看或添加评论,请登录

Oussama Afassi的更多文章

  • HOW TO DEPLOY A REACT WEBSITE IN GITHUB

    HOW TO DEPLOY A REACT WEBSITE IN GITHUB

    So the other day a friend of mine Taha Ouad asked me how can he deploy a React website in github, so i thought it would…

    1 条评论

社区洞察

其他会员也浏览了