Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How Git uses TortoiseGit to configure VS

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

How to use TortoiseGit to configure VS in Git, this article introduces the corresponding analysis and answer in detail, hoping to help more partners who want to solve this problem to find a more simple and easy way.

On vs using git online tutorials you can also find, I was also in accordance with the configuration of the online tutorials step by step, but said or set up when missing a lot of things, but also took a lot of detours, if you also start to use git, and configure vs, then follow me step by step, experience, I hope to help you.

Installation

Vs to use git first need to install two necessary software msysGit and TortoiseGit, the two software download address and installation use of the previous article has a detailed introduction, the system necessary software installed, and then install the Git Source Control Provider plug-in in VS.

Vs- > tools-> extensions and updates. Search for the Git Source Control Provider plug-in online after opening it. After downloading and installing, remember to restart VS to take effect.

When you reopen vs, you find that you see the git option in Source Control.

Http://www.cnblogs.com/xishuai/p/3590705.html

Configuration and u

There is a Git Source Control Provider Options option under the plug-in selection above. The tutorials I found at that time did not talk about the setting of this option. Just say that the source code management software is git. In fact, it needs to be set up. At that time, I took a lot of detours in the configuration.

Let's turn on this option and take a look:

We can see the options for four program directories:

Git for windows (git.exe)

Git extensions

Torroisegit

Diffmerge

* that is, the directory where we installed msysGit. Git.exe is under the bin folder, and the second is the git extensions directory. Most of what I talk about on the Internet is the configuration of this. I also tried it at that time. At that time, I didn't know how to set this option. After setting it, I always reported the error of lack of libiconv2.dll. I don't know if you have ever encountered it. Later, I found that it was the problem of setting up the directory.

In fact, git extensions and torroisegit are the same, set up a directory on the line, more will report some errors. Git extensions is not used to it, and resource management uses turtles, svn also uses turtles, so vs configuration git also uses turtles. After the directory of torroisegit is set, * git for windows can not be set because torroisegit is already associated with msysGit. It should be noted here that torroisegit chooses TortoiseGitProc.exe when selecting exe, and selecting other exe files will cause errors in the program.

The fourth diffmerge is the file comparison program directory. If you use git extensions, you will be prompted to install the KDiff3 program during installation. KDiff3 is a file comparison tool that can be used when branch merging, and can also be set to other comparison tools after installation, such as BCompare

1, set up, we build a Demo project, the left part of the project file and svn will appear similar to the version control icon, if not, right-click refresh to refresh will appear.

2, right-click the solution and select commit to submit.

3. Fill in the comments, select the documents to be submitted, and click submit.

4. By this time, the file has been submitted locally. We need to set the configuration of the remote git when we open torroisegit, and select the address where the key is generated and saved. The putty key address is selected.

5. After setting up the remote git, we can choose the remote address push that we just set.

6. After the push, we can browse the project we uploaded on github, and the version control icon in vs has become the shape of a lock.

7, not to mention the modification and addition of files, the use of git in vs is similar to that used in resource files, and torroisegit is quite easy to use.

This is the answer to the question about how Git uses TortoiseGit to configure VS. I hope the above content can be of some help to you. If you still have a lot of doubts to solve, you can follow the industry information channel for more related knowledge.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report