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