github use, save the code to github repository

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/qq_16855077/article/details/90765864

      I have, since 17 years began to write blog, there are small 2 years, and in the process of learning, found that some blog provide technology, open source is not very full, and sometimes have to read a lot of blog to find a complete code after all, technology is shared, do you want to have a technology upgrade, we will have to have the spirit of sharing, after all, the technology world is so big, we can not be one city, sometimes encounter problems, we might also difficult to analyze for a long time get to the problem, Baidu a search, someone may have already stepped on this pit, before I write blog, paste the code plus a brief description are found in this way, to share a little bit about the technical points are okay friends, I do not know, may be shining write, there may be some difficulty, therefore, consider the code into github, as one of my testimony.

1. Create a github address

github official website address    https://github.com/

Fill out the registration information, account numbers, passwords, e-mail (E-mail back for activation)

 After successful registration, fill into the above email

 Successful login screen

2. Create a warehouse 

Create a successful Warehouse below: 

3.git client installation 

git Address: https://git-scm.com/download/

The next step has been the next step

4. Binding users and mailboxes

User.email back then 'mailbox' ------ mailbox when the mailbox is registered github

User.name back then 'account' ------ account that is registered github account

4.github set up ssh keys

Git on to run the following command:

ssh-keygen -t rsa -C "own email address."   

Rsa command generation path finish: the user is stored in the following

 

 

As the value of id_rsa.pub placed in ssh key.

Such ssh configuration is successful

5. code upload 

Upload codes are two ways, https and ssh way

Select the file you want to upload. Right click and select git-bash

echo "# test" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/ITfqyd/test.git
git push -u origin master

1. Initialization Management

2. Increase README.md file

3. Add configuration first commit to him

4. Upload to https warehouse

5. upload to github

After the mailbox and prompts for a password, enter the run, you can view the corresponding directory

https://github.com/ITfqyd/springcloud

如果你热衷技术,喜欢交流,欢迎加入我们! 

 

 

Guess you like

Origin blog.csdn.net/qq_16855077/article/details/90765864