Add to favorites on GitHub

Source: Internet
Author: User
Tags using git
  • Cause
    I used to open source my own 【CodeGenerator (http://www.cnblogs.com/gossip/archive/2011/11/13/2247154.html,
    Http://codegenerate.codeplex.com/), especially the Open Source codeplexArticleSome people suggested that I use GitHub as the source code control software. I happen to have this kind of requirement (I need to update terminals in different places.Source codeI have been using Kingsoft fast Disk Synchronization before, but I cannot trace the code version. So I decided to use GitHub for code version control)
    After a painful search on the Internet, I finally realized the function and submitted the code. The following is a reference website used during the exploration process:
    Http://kb.cnblogs.com/a/2314190/
    Http://blog.lishewen.com/2012/03/31/650422.html
    Https://github.com/
    Http://blog.chinaunix.net/uid-25806493-id-3319781.html
    Note:I have successfully installed Windows 7 32 and 64-bit servers. For 32-bit systems, you can customize the software installation directory, but for 64-bit systems, we recommend that you use the default directory, otherwise, it is troublesome to reconfigure the working directory of some software. (Because Install multiple software using git)
  • Procedure
    • Next I will explain how to create a new open-source project on GitHub.
    • 1. register an account https://github.com/signup/free)
    • 2. Download and install git extensions (remember to check kdiff during installation)

      Http://code.google.com/p/gitextensions/downloads/detail? Name = gitextensions233setupcomplete. MSI & can = 2 & Q =
    • 3. Download and install msysgit (GIT for Windows)
      Http://code.google.com/p/msysgit/downloads/detail? Name1_git-1.7.10-preview20120409.exe & can = 2 & Q = Full + installer + official + git
    • 4. Download and install tortoisegit (select the 32-bit and 64-bit versions based on different systems)
      32-bit version: http://code.google.com/p/tortoisegit/downloads/detail? Name = TortoiseGit-1.7.10.0-32bit.msi & can = 2 & Q =
      64-bit: http://code.google.com/p/tortoisegit/downloads/detail? Name = TortoiseGit-1.7.10.0-64bit.msi & can = 2 & Q =
       
    • 5. Open git extensions (desktop), select the global settings tab, and enter the user name and email address when registering the account. Click OK in the lower-right corner to open the new form.
       
    • 6. Obtain the verification key
      Menu --> remote --> putty --> Generate or import key --> Generate (generate public and private keys, this process takes some time, please be patient)
    • 7. Save the total and private keys
    • 8. log onto GitHub and click Account setting in the upper right corner.
    • 9. Select SSH keys, click Add SSH key in the upper-right corner, enter the title and key (the Public Key generated in step 1), and click Add key.
    • 10. Create a new project on GitHub (Click Create a New repe in the upper right corner of the page --> enter project information --> Click Create)

    • 11. Open Visual Studio --> tool --> Option --> sourcecontrol --> select git source control
      (You need to install git source control provider through Extension Manager)
    • 12. How to submit the project to GitHub(Push sending error (not a valid git resposity), right-click init git here in any path (which is the path of the project)
      Vs --> open a project to be uploaded --> menu --> git --> push --> OK -->Remote Management

      Git@github.com: jameshappy/mycodegenerate. Git
      • After that, click push. During push, you may need to enter the GitHub login account and password
    • 13. How to submit the modified Code to GitHub
      • Select Commit
      • Code submission
      • Code added by GitHub
    • 14. If you get the latest code from GitHub
      • Open pull form
      • Get the latest code
    • Summary
      This time, it took a lot of effort to use GitHub. The main reason is that e is not enough, and GitHub is not as convenient as codeplex in MS, providing one-stop services. Instead, it needs to install multiple software for use, so it took several days. This course only implements the function of uploading code to GitHub and has not been studied in depth. Thank you for your advice! Thank you!

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.