Tortoisegit getting started

Source: Internet
Author: User

Use git locally

First, you must confirm that tortoisegit has found msysgit. If you install msysgit and then install tortoisegit, tortoisegit will automatically identify it.
For installation instructions, see tortoisegit installation tutorial.

Set and query methods. The settings are displayed from the Start Menu.

This is the setting interface of tortoisegit. You can see the path used to locate msysgit.

Click "check now" to check the validity. If there is an error, set the binfile path of msysgit.


Right-click any folder and you can see that tortoisegit has been embedded right-click.

"Git clone..." is to obtain a remote version library, and "Git create repository here" is to use the selected folder as the version library to be created.

After you click "Git create repository here" in the folder where you want to create a version library, the following information is displayed:

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

Note: It is best to find an empty folder to practice or back up the folder. For example, if you mistakenly select clean up to delete all files without version control, it is too late to cry -_-.

Now, the folders initialized with GIT are different !!

Not only are the files attached with the green hook icon (this is a file that has been added to the version library and has not been modified), but the right-click menu also has the operation option.

Select the files to be managed using the GIT version library, and add them using the GIT menu.

Master is the default main branch (trunk) of git and is suitable for single-user development. You can create a branch for each person during development.

By git commit-> "master", the contents of the selected folder are submitted to the library for summarization. (If you do not know, do not press it)

After the modification is submitted, the following error occurs:


The above is how to submit changes to the local version library, so it can be used no matter whether there is any network git.

Remote use of Git

After the local commit (submit), we will introduce the push to remote.

The following uses Git to communicate with sourceforge.net as an example.

First, right-click the blank space in the local folder to be submitted and choose tortisegit-> Settings.

Select Config and enter the username and email address in sourceforge.net.

You can also enter other information. Here, the author name and contact information displayed in the version library after each submission.

Select remote. You can see three text boxes to be filled in on the right.

Remote: a code name for remote transmission (you can name it as you can understand it)

URL: the destination address of SourceForge to be submitted. format: SSH: // username @ project name .git.sourceforge.net/gitroot/project name/Repository name

(Replace orange030 with your sorcefore username, which is like AAA, then you should write SSH: // aaa@throwstone.git.sourceforge.net/gitroot/throwstone)

You can also find the address on the project page by logging on to sorcefore and entering the GIT access column in code> git on your project page. (read-only) and (read/write) Address

Putty: the key you use on sorceforge (set the SSH key of SourceForge)

After filling in the information, click addnew to add it.

To update a file from a local folder to a network library, select a folder (which must have been initialized by GIT), right-click it, and choose tortoisegit-> push.... The following window is displayed.

Select the local branch to be pushed and the remote target branch, and click "OK ".

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

If you have already set remote, click "OK.

If the remote drop-down menu is blank, it means that you have not set remote. Click "manage remotes" to set it. (Refer to the above)

Note: If the box shown in appears, you only need to fill in the putty password you used on sorceforge, but the speed is fast. Otherwise, it may time out.

However, if you enter the correct password, you do not need to enter the second pull.

 

 

 

From: http://www.zonozone.com/tiki/tiki-index.php? Page = tortoisegit % E4 % BD % BF % E7 % 94% A8 % E5 % 85% a5 % E9 % 97% A8

 

 

 

 

 

 

 

Run the "Git clone..." command:

 

 

 

 

 

 

 

 

 

 

 

 

 

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.