How to upload a project to Github

前端 未结 23 1369
误落风尘
误落风尘 2020-11-29 14:04

After checking Upload my project to github I still have no idea how to get a project uploaded to my Git Hub repository.

I\'m new to GitHub and I have no idea what to

23条回答
  •  再見小時候
    2020-11-29 15:05

    1. We need Git Bash
    2. In Git Bash Command Section::

    1.1 ls

    It will show you default location.

    1.2 CD "C:\Users\user\Desktop\HTML" We need to assign project path

    1.3 git init It will initialize the empty git repository in C:\Users\user\Desktop\HTML

    1.4 ls It will list all files name

    1.5 git remote add origin https://github.com/repository/test.git it is your https://github.com/repository/test.git is your repository path

    1.6 git remote -v To check weather we have fetch or push permisson or not

    1.7 git add . If you put . then it mean whatever we have in perticular folder publish all.

    1.8 git commit -m "First time"

    1.9 git push -u origin master

提交回复
热议问题