tortoisegit

git 使用 tortoisegit 解冲突

匿名 (未验证) 提交于 2019-12-02 23:49:02
弄清除冲突双向的修改意图,并在解决冲突时,同时处理两边的意图。 A.txt 文件, 在 master 分支上,有一行文字(代码)是这样: 这是一段在 master 分支上的文字。 Alice 在 dev 分支上,修改了这段文字(代码),修改后如下: 在 dev 上,将 master 的文字修改为这段文字; 并添加了其它文字; 如果是代码,这些代码相互关联。 Bob 基于 master 分支开发功能,在 f/feature 分支上,也修改了这段代码,如下: 在一个功能分支(f/feature)上修改 master 上的代码; 以及与之相关的其它内容。 现在,Bob 需要把 dev 分支的代码合并到 f/feature 分支上,git 命令: (@f/feature) git merge dev 将得到一个冲突。 如何解决这个冲突? 解冲突推荐使用 GUI 工具,因为直观。这里介绍 tortoisegit 解冲突的操作。 (图1)操作入口: (图2)冲突列表: (图3)文件的解冲突页面 对于比较简单的冲突,直接应用某一边的修改,或者做一下简单的编辑(图3中,下面的区域是可以编辑的。) 对于复杂冲突,需要了解两边对同一段代码的修改意图,即对方(Remote)为什么要这样改,要达到什么目的?本方(Local)为什么要这么改,要达到什么目的? 修改比较复杂是,在图3的界面中

Git: Changes keep getting lost due to seemingly random merges

南笙酒味 提交于 2019-12-02 22:20:37
I have a feeling this will be an obvious answer, but I can't seem to work it out. What appears to happen is that I commit/push some changes to the server and everything appears fine on my copy. Another developer then pulls from the server from the same branch (allegedly seeing my changes, as far as I'm aware), makes some modifications, commits them to their own local copy then finally pushes it back to the server. Somewhere in the middle of doing this my changes get lost as their push (326c8fd0...) causes a merge with lots of delete/add lines resetting the repository back to a much older

git did not exit cleanly (exit code 128) [duplicate]

不羁的心 提交于 2019-12-02 21:40:34
问题 This question already has answers here : How to resolve “git did not exit cleanly (exit code 128)” error on TortoiseGit? [closed] (14 answers) Closed 4 years ago . i am getting this error. Tried all the solution from How to resolve "git did not exit cleanly (exit code 128)" error on TortoiseGit? I m using tortoise git & have git version 1.9.5.msysgit.1 回答1: I think 128 means the file is not found. Make sure TortoiseGit has been configured correctly to know which git.exe to run. Try opening

Solution to adding a Git (TortoiseGit) toolbar to Visual Studio [closed]

坚强是说给别人听的谎言 提交于 2019-12-02 19:26:01
Anyone know how to create a toolbar in Visual Studio 2010 to use with Git (TortoiseGit)? Thanks SurfRat I wanted a Git toolbar in Visual Studio and I found no solution to this so I thought I would share this with you. I installed the Git Source Control Provider and got Git working (via TortoiseGit) with the right click context menu. This was tedious and rather ugly as all the TortoiseGit commands had the same icon. I then added external tools to Visual Studio... The external tool commands for TortoiseGit are as follows: Title: Git Push Command: C:\Program Files\TortoiseGit\bin\TortoiseProc.exe

git on windows shows modified files all the time, even for newly cloned repo

北城余情 提交于 2019-12-02 19:03:22
I am having issues with my git on a windows machine. I always have some git files that are modified in every repo, the files that show as modified are same. If I clone a new repo and use tortoisegit to commit I see some files as modified, even if I never touched a single file in the repo. "gitstatus" doesnt show any modifications though Any help is appreciated. Thanks Juuso Ohtonen Check if the changes are merely changes in file permissions. This was the reason in my case, both TortoiseGit and Git Extensions displayed unmodified files. Use git config core.fileMode false to ignore chmod

Instructions on using TortoiseGit to interact with an SVN repository?

ε祈祈猫儿з 提交于 2019-12-02 19:01:45
I've been using TortoiseSVN on Windows for years with local filesystem repositories for my own projects. I'm planning to start collaborating with a friend on one of the projects, and will be shifting the repository to my own website. I've read a lot of "git beats SVN!" posts over the last couple years, and figured I ought to at least see what the fuss was about. Some research turned up the "git svn" command, and that TortoiseGit claims to have some level of git-svn support. I like the idea of keeping the SVN repository, and doing some local commits or branches with git before committing them

TortoiseGit using incorrect SSH key

故事扮演 提交于 2019-12-02 18:14:58
I have a strange problem with tortoise git at the moment, which I can't figure out. When trying to commit to my repository on github I get the error ERROR: Permission to martindevans/Hermes.git denied to key2 Key2 is a key I use to access a different github repository, however the remote url is not set to use key2, as you can see here it's set to use private.ppk Am I doing something obviously wrong, or is tortoise git broken? Nb. In response to the comments. Using normal git results in: C:\Users\Martin\Documents\Visual Studio 2010\Projects\Hermes>git push Permission denied (publickey). fatal:

TortoiseGit, TortoiseBzr, TortoiseHg. Are any solid enough to switch from TortoiseSVN? [closed]

最后都变了- 提交于 2019-12-02 18:03:31
I'd like to try out a distributed revision control system. I use a couple Windows PCs, a couple PCs with Linux, and a Mac. On windows, I'd like to use Tortoise. Are any of the Tortoises other than TortoiseSVN any good? Until recently, the knock against them has been that they are slow and buggy, but it seems like there's a new push to get them solid. I'd rather not have to try out all three. Anyone make the switch lately and have a good experience? I've been using TortoiseGit for a while. Whilst it's true that git's performance suffers on windows, it's going to be perfectly acceptable in most

Change repo url in TortoiseGit

℡╲_俬逩灬. 提交于 2019-12-02 17:52:23
We just updated our git repos to a new location and I'm using TortoiseGit with some uncommited changes. Can I change the folder reference anywhere? I'm not seeing the option in the context menus. I'd rather not recreate and merge if avoidable since there are about 14 repos in total. I'm not well versed in git so please let me know if the question is flawed as well. As far as i understand question. Path to change url of remote repository is: Right click on main folder TortoiseGit Settings Git Remote In field remote select origin -> url of repository will appear in field URL: and can be changed

Git issue with Visual Studio 2015

跟風遠走 提交于 2019-12-02 17:24:44
I have a Visual Studio solution inside a git repository created with TortoiseGit version 1.8.16.0 (git version 2.6.2.windows.1) I just updated Visual Studio from 2015 to 2015 Update 1, and it stopped tracking changes on my files. also it won't allow me to commit anything. Is this some sort of a known problem? are there any solutions? update (ironic title...) VS tracks unsaved files as "changed" and saved files appear to be "unchanged" switching branches is behaves correctly and results in an error if there are uncommitted (real )changes update 2 could this in the output window could have