tortoisegit

How do I check out an older version of a file with TortoiseGit?

筅森魡賤 提交于 2019-12-10 18:26:29
问题 I see threads on here about checking out older versions of a file with the command line git, but how do I do it with TortoiseGit? 回答1: Right click the file, select TortoiseGit > Show Log. Find what revision of the file you want to check out, by clicking old revisions in the bottom pane of the log. Once you find which one you want to check out, select 'Revert to this revision'. Word of warning, I'm not sure if this reverts a single file, or rolls the entire repo back to that hash tag. 回答2:

git tells me that my files are changed, but I can't see any difference

家住魔仙堡 提交于 2019-12-10 17:32:07
问题 I've just installed the latest Git (1.9.5), and suddenly it tells me that my working tree is not clean (changes are not staged), but I can't see any changes in any of my files in any diff tool (I tried Tortoise and Visual Studio's built in). When I run git status, it says: Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git checkout -- <file>..." to discard changes in working directory) modified: inc/i_lab_orders.asp modified: lab_order_list.asp

Using Git + TortoiseMerge, failing to load file into TortoiseMerge because of space in path name

ⅰ亾dé卋堺 提交于 2019-12-10 11:47:00
问题 I'm trying to use Tortoise's DiffMerge tool to resolve a git merge conflict. I've got the following my my .gitconfig: [diff] tool = tortoisediff [difftool] prompt = false [merge] tool = tortoisemerge [mergetool] prompt = false keepBackup = false [difftool "tortoisediff"] cmd = \""c:/Program Files/TortoiseGIT/bin/TortoiseGitMerge.exe"\" -mine:"$REMOTE" -base:"$LOCAL" [mergetool "tortoisemerge"] cmd = \""c:/Program Files/TortoiseGIT/bin/TortoiseGitMerge.exe"\" -base:"$BASE" -theirs:"$REMOTE"

GIT menu not visible

只谈情不闲聊 提交于 2019-12-10 08:30:04
问题 I have GIT installed on my desktop. Earlier it used to work fine but on system restart suddenly it stopped working. Usually on right click GIT Clone, GIT Create Repository Here, TortoiseGIt options appear. In my case only TortoiseGIT appears and no further options in it such as Push, Pull, Switch/Checkout etc are visible. In short TortoiseGIT appears but is useless as I cannot do anything. I am using Windows 7 32-bit OS. What could be the cause of this? Also please help solve the issue. 回答1:

TortoiseGit clone remote branch

孤人 提交于 2019-12-09 17:46:21
问题 I am trying to come to terms with Git as I recently started using it (long time Subversion user) and I cannot find a way to clone a remote branch with TortoiseGit. I have created a local branch which I pushed to GitHub, but when I try to clone (checkout) this remote branch I cannot find any way to do it. How can I do it? 回答1: As stated by linquize, this functionality isn't directly provided by TortoiseGit. If you really want to use it though, you can: Clone the repository that the branch

git.exe pull error: cannot spawn git: Invalid argument

强颜欢笑 提交于 2019-12-09 14:36:30
问题 I have an error exactly as it's on the picture. Tried various settings, googled, reinstalled. Git pull doesn't work in TortoiseGit, I can commit and push, though. I have ssh client in network tab. What else can I try? 回答1: Update: Git for Windows 2.16.1(4) is out and that should fix this issue: https://github.com/git-for-windows/git/releases Old answer: This is a known issue in Git for Windows 2.16.1(2) and 2.16.1(3): https://github.com/git-for-windows/git/issues/1481 Only workaround is to

Git error: “Please make sure you have the correct access rights and the repository exists”

心已入冬 提交于 2019-12-09 04:05:41
问题 I am using TortoiseGit on Windows. When I am trying to Clone from the context menu of the standard Windows Explorer, I get this error: Please make sure you have the correct access rights and the repository exists More precisely, the snapshot of terminal is the following: git.exe clone --progress -v "git@arobotdev:\git\AlfaRobot.git" "C:\Work\AlfaRobot" Cloning into 'C:\Work\AlfaRobot'... Permission denied, please try again. Permission denied, please try again. Permission denied (publickey

Use TortoiseGit with multiple GitLab accounts

99封情书 提交于 2019-12-08 08:54:09
问题 I have two GitLab account and want to use them with TortoiseGit so for that I made keys and add them to each account so no I have to key in .ssh folder like id_rsa_account1 and id_rsa_account2. Also I changed config file like here and now I dont have problem in using git with cmd but I want to use it with TortoiseGit. Now how can I have two repository like test1 and test2 and use them with TortoiseGit? 回答1: How to set up two SSH keys for two GitLab accounts and push/pull by using TortoiseGit?

Integrating Git into my workflow

大城市里の小女人 提交于 2019-12-08 08:24:39
问题 I use NuSphere's PhpED's PHP IDE to crate and debuge PHP script. I've never used a repository systems, but wish to do so now, and am struggling on how to implement it into my workflow. I have the following three machines: Windows 7 PC NuShere PhpED IDE (It is set up to use my Local Development Centos Server) TortoiseGit SourceTree (Not sure if I will use since it doesn't integrate with PhpED) Local Development Centos Server Apache (used with PhpED on Windows PC) GitLab Samba (not set up yet,

Git-Credential-Manager-for-Windows also saves invalid credentials

霸气de小男生 提交于 2019-12-08 03:33:25
问题 I am using the Git-Credential-Manager-for-Windows version 1.6.0 (also tried 1.5.0) from here: https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases The Git-Credential-Manager-for-Windows is included Git for Windows I am using (tried 2.9.3 and 2.9.2) https://github.com/git-for-windows/git/releases I have the following problem: If you activate the credential manager and e.g. pull a repository, you get asked for your login-credentials. The credentials get saved in the windows