git builds on Windows

Source: Internet
Author: User
have been accustomed to use SVN, but SVN but part of the deployment in the LAN, it is not easy to use, so began to learn to use git;

One, download git for Windows,

: Https://git-scm.com/download/win Source Address: Git clone https://github.com/git/git Two, create a repository locally: Select the path, use git init;    Third, to bind their own remote account; Create SSH key First, in the user directory there is an. ssh folder, if not; Run command: ssh-keygen-t rsa-c "email address" the generated. SSH directory will have id_rsa.pub and Id_rsa, The former is the public key, the latter is the private key, and then landed on GitHub, in Settings--->ssh and GPG keys, add a Sshkey, name casually, key to fill in the contents of the rsa.pub; four, bind GitHub on the library, if not on the new, Then take the SSH link, [email protected]: username/library name. Git; Run command: git remote add server alias [email protected]: username/library name. Git v. Push a commit to a remote server , the first time to push with git push-u remote server alias master; Subsequent submissions do not have to add-u; If the submission prompt the current folder is empty, pull the remote file above, then push six, clone from GitHub to your own computer, use the command: Git clone [email protected]: username/library name. Git, of course, supports https//and other protocols, But the GIT protocol via SSH is the fastest;

git builds on Windows

Related Article

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.