The local demining project hands uploaded to GitHub

When configuring your environment, you find a lot of tutorials, encountered many problems. The following general summary written by, essays written by some less literary talent shortage.

Upload GitHub project need to prepare the environment:

1. be uploaded project

 

2. Registered good GitHub account (Registration Tutorial URL: https: //blog.csdn.net/weixin_42693104/article/details/82584849)

3. has been installed configuration Git (installation configuration Tutorial URL: https: //segmentfault.com/a/1190000011809698)

Do the pre-appeal preparation to begin the installation it

First, create a Github project

  1) Log GitHub, click on [+] Select [New repository]

  

 

  2) Input Repositoryname [], [Description], other configurations default on the line, and finally click Create   

    3) create success, get the address (upload destination address native code)

  

 

 

Second, create a local warehouse

  1) into the project addresses local disk, right click and choose [Git Bash Here] to enter the terminal Git

  

  2) git init git will generate local management after (successful, there will be a hidden .git files in the current directory. If not, please Baidu 'configuration file shows how to hide')

  

  

  3) git add. Add all the files to the repository project, such as the need to add the specified file to add files to the cache, you can use (git add.filename) way

  

  4) git congfig --global user.mail configuration "[email protected]" Mailbox

  

  5) git commit -m "first commit" to submit

   

  6) git remote add origin https: // project addresses (above comes) will be associated with the local repository to github

   

  7) git push -u origin master, which is the code uploaded to github repository, the upload process will be prompted to enter the Username and Password Github 

      

   8) 上传成功,查看Github项目代码

 

 

 

三、学习过程中遇到的坑,

  1) 提交Git失败(操作远程起源已存在)

  

  解决:

         1) git remote rm origin

    2) git remote add origin https:******

  

 

Guess you like

Origin www.cnblogs.com/ER-DOG/p/11184822.html