Getting Started with Msysgit and Tortoisegit

Source: Internet
Author: User
Tags commit ssh using git git clone

1 Msysgit's website:http://code.google.com/p/msysgit/

2 Getting Started with Tortoisegit

From: http://blog.csdn.net/spy19881201/article/details/5835416

First of all to determine tortoisegit has found Msysgit, if first installed msysgit and then loaded Tortoisegit, General Tortoisegit will be automatically recognized. installation See Tortoisegit Installation tutorial

Set up the method with the query, here from the Start menu to enter settings.

This is the Tortoisegit settings interface, you can see the path used to locate the msysgit.

Point "Check Now" for validity. If you have any errors, set the Msysgit bin file path yourself.

Right-click any folder to see that Tortoisegit is already embedded in the right button.

"Git Clone ..." is to get the remote repository, "Git Create repository Here" is the selected folder as the repository to be created.

After you click "Git Create Repository Here" in the folder where you want to create the repository, you will see:

Click "OK" to automatically create a hidden folder ". Git" in the root directory of the folder.

Note: It's a good idea to find an empty folder to practice, or to back up a folder. For example, mistakenly selected clean up to the version control of the files are deleted, crying too late-_-.

Now, the folders initialized with GIT are different!!

Not only does the file have an attached green hook icon (this is a file that has been added to the repository and has not been modified), there are also many options for the right-click menu.

Files that will be managed using the GIT repository, select the Git menu add-in

Master is the default main branch (trunk) of git and is suitable for solo development. Multi-person development can create a branch for everyone.

Press git commit, "master" to submit the contents of the selected folder to the library used for summarization. (If you don't know it, don't press it.)

After submitting the changes, it appears:

The above is how to commit changes to the local repository, so whether or not the network git can be used.

using git remotely

After the local commit (commit), the following is the push to remote.

Here's an example of Git and sourceforge.net communication.

First, right-click the space in the local folder you want to submit, and select Tortisegit->settings.

Then select Config and fill in the user name and mailbox in SourceForge.net.

Of course, you can fill in the other, here is the name of each submission, the version of the library display of the author and contact information.

Then select remote, you can see the right image has 3 text boxes to fill in.

Remote: A code name (which can be used to read and understand the word).

URL: The SourceForge destination address to be submitted in the format ssh://user name @ project name. git.sourceforge.net/gitroot/Project name/repository name

(Replace the orange030 with your Sorcefore username, which is more like AAA than the user name, then you should write Ssh://aaa@throwstone.git.sourceforge.net/gitroot/throwstone/throwstone)

The address can also be found in the project page by logging in to the Sorcefore and seeing the (Read-only) and (Read/write) addresses in the Git Access column of your project page Code->git

Putty: The key you used on the Sorceforge (set SSH key for SourceForge)

After filling the point AddNew increase can be.

To update from a local folder to a network library, select the folder (must be git initialized), then right-click, select Tortoisegit->push ..., and pop up the following window.

Select the local branch to push, and the branch of the remote destination, click OK.

To update from the network library to a local folder, select Tortoisegit->pull ....

When you are sure that you have set up a remote, click OK.

If the remote drop-down menu in the figure below is blank, it means that you haven't set up remote yet, click "Manage remotes" to set it up. (please refer to above)

Note: If the following illustration shows a small box, just fill in the password you used on the Sorceforge putty, but the speed is fast, otherwise it may time out.

But time-out is no big deal, as long as you enter the correct password, the second pull will not have to enter.

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.