Github configuration User Guide, github User Guide

Source: Internet
Author: User
Tags git shell

Github configuration User Guide, github User Guide

1. Create a project and enter the project folder.

2. For details about how to initialize the ssh key, refer to the Guide on the official website. (A pair of keys are generated on the local machine and the public key is uploaded to the sshkey on the official website)
Https://help.github.com/articles/generating-ssh-keys/
3. initialize the user name and email address

$ Git config -- global user. name "defnngj" // give yourself a username
$ Git config -- global user. email "defnngj@gmail.com" // enter your mailbox

4. git init

5. git add.

6. git commit-m "message for this commit"

7. touch README. md

8. git add README. md

9. git status

10. Go to the github website to create a repo such as "ts. git"

11. git remote add origin git@github.com: wuzhuzhu/ts. git
If fatal: remote origin already exists is encountered, enter:

Git remote rm origin

12. git remote add origin git@github.com: wuzhuzhu/ts. git

13. git push-u origin master

Counting objects: 19, done.
Compressing objects: 100% (16/16), done.
Writing objects: 100% (19/19), 4.54 KiB, done.
Total 19 (delta 1), reused 0 (delta 0)
To git@github.com: wuzhuzhu/ts. git
[New branch] master-> master
Branch master set up to track remote branch master from origin.

14. Pull the git document:
On a remote host:

Git remote add origin git@github.com: wuzhuzhu/ts. git
Git pull origin master
Problems:

The windows client is a scum... you still need to use git shell or even create a repo. It's always a network error. The remote server needs to handle ssh key... git
Remote add origin git@github.com: wuzhuzhu/ts. git
It refers to the establishment of the origin to this git URL, do not repeat the binding.

The above is the github configuration of the personal simplified version.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.