GitHub Client Configuration and use

Source: Internet
Author: User
Tags git client

The steps to configure and use the GitHub client under Windows are as follows

    1. Create repository on Github, specify name, Readme.md, and LICENSE files;
    2. Install Git client,: https://git-for-windows.github.io/, install the open git client (git bash);
    3. Configure SSH keys: Enter commands in Git bash
      Ssh-keygen-t rsa-c "[Email protected]"
      Return or enter Yes to confirm until completed, and generate a id_rsa.pub file, the path of the file will be given during the execution of Ssh-keygen, pay attention to observe
      Open and copy all the contents of the file, log on to GitHub, open account Settings, add Sshkey

      Enter ssh-t [email protected] Check is successful, may prompt irrelevant information, enter Yes to confirm
    4. Create a local MAVEN project (need to sync to GitHub);
    5. Open git client (git bash) switch to MAVEN engineering root directory

      Execute the following command in turn
      GIT init//initialize git config--global user.name "name"//set user name  git config--global user.email "email"  //Set mailbox Git Remot e Add [email protected]:ywlaker/uc-web.git  //Add remote repository, replace it with your own username and repository name Git pull Origin master//bring the data from the repository, such as Readme file and license file git Add./*  /Add Local project file git commit-m "comment"//submit to cache Git Push-u Origin master//submit to remote repository
      So the project is synced to GitHub!

GitHub Client Configuration and use

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.