Tortoisegit (turtle git) simple operation Oschina_git

Source: Internet
Author: User

Originally always used GitHub, from above to find some open source projects and source code. Because the laboratory does some small projects, but it is not convenient to open, but the GitHub built on the project is privately charged. Later I heard of git.oschina.com. As long as it is registered, each user can establish 1000 private items. Here's a way to share your own use of tortoisegit (turtle git) to manipulate Oschina. PS: The command line party does not like to touch.

The first step, please download two software is:

Imsysgt (git-1.9.4-preview20140929) http://msysgit.github.io/(This is official, if not download the words with the following)

http://download.csdn.net/detail/ts_zxc/8108693

Tortoisegit https://code.google.com/p/tortoisegit/wiki/Download?tm=2

Turtles can also download the Simplified Chinese Language pack on the download page. Installed separately after downloading, if unfamiliar, you can use the default settings.

After installation, first set the Tortoisegit to Chinese, right-click the menu bar Tortoisegit->settings->language Select Chinese, and then right click on any file, will appear in the following figure shown in the content, so that you have installed:


Then, open the Start menu and find the "Puttygen" shown below in the Tortoisegit directory, with the left mouse click. As shown in the following illustration:


After you click, you will see the following interface, which produces the key, click Generate, this puttygen is actually calculated according to the mouse motion trajectory, so use the mouse to write down in the blank area:


After the completion of the operation will appear the following interface, copy from scratch to = =, behind the rsa-key-xxxx do not copy click Save Private Key, save the file, EXAMPLE.PPK file.


The second step, such as Git.oschina.com website registration account, after registration, enter the Http://git.oschina.net/keys/new page, add the public key, which is just copied those dongdong.


Then create a new project, choose the default is good, and then in the Project home page, you will get to the following picture of the information, point behind the Copy small button, familiar with the GitHub should know this is used to establish a connection;


Select a synchronized directory, preferably empty, and the path name is English, the right mouse button menu "Git here to create a version library", do not tick, directly point to determine, there will be a. Git directory, hidden.

Then right mouse button right click menu tortoisegit->settings


After filling, select "remote" below git on the left, will appear the following interface, in turn, fill in your nickname in the Git@osc, mailbox, just copied git remote address, select just saved the private key. ppk file, click "Add/Save", then there will be a messy hint, point "no" it is.


Right mouse button menu tortoisegit-> pull (pull), direct point to determine

Let's say how to push to the server, edit the readme.md file, fill in some content,

Then right-click menu: Git submits->master, write log information, point OK:

Do not think this is the end, then the right button menu:tortoisegit-> push, directly point to determine, and then go to your homepage to see, so it can be.

And one of the problems I've encountered is that when push and pull are pushed and usrnane, it makes the input and password. Remember that the usrnane here are the mailboxes you register git.oschina.com, not nicknames.

And if you don't want to enter your username and password each time, you can create a new file in your user directory named "_NETRC."

The contents are as follows:

Machine git.oschina.com
Login your username (this should be the mailbox)
Passwor your password


Refer to the following:

http://my.oschina.net/dxqr/blog/13481

http://my.oschina.net/longxuu/blog/141699

http://our2848884.blog.163.com/blog/static/146854834201152325233854/







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.