tortoisegit

Git (TortoiseGit) - How to revert a single file to a previous revision and then undo the revert?

天涯浪子 提交于 2019-11-27 13:30:06
问题 When using Git with TortoiseGit: Does somebody know how to revert a single file(or a complete repository) to a previous revision? For example I have a repository containing multiple files. One file exists in three revisions (1 ; 2 ; 3). Now I want to change from revision 3 back to 2. TortoiseGit offers a "Revert" function in the "Show log" dialog which allows to jump back to a specific revision, but this will revert your whole repository instead of a single file. Also once I have reverted

How do I delete a Git branch with TortoiseGit

∥☆過路亽.° 提交于 2019-11-27 09:13:04
问题 Is there an option to delete a branch with TortoiseGit? I found a solution for the commandline. Is there an implementation in TortoiseGit? 回答1: You should read this article: Remote branches with TortoiseGit According to this blog post: ...remove the local branch by first opening up the Checkout/Switch dialog to get at the Browse refs dialog. In the Browse refs dialog we can right click on the local branch and choose to delete it. To delete a remote branch we can do the same thing, but instead

Can I update a forked project, on git, to the original/master copy?

橙三吉。 提交于 2019-11-27 07:05:43
A few weeks ago i forked a public project on GitHub. Today, I wish to try some stuff on it BUT i want to make sure the copy I use is the most recent. Can I update my fork, first? And what happens if there's changes to the fork AFTER i've started my changes. Can i update my fork again, while leaving my changes in there (ie. merge, if needs be?) manojlds Yeah you can pull the changes from the original repo into your fork. Add a remote to it ( since origin will be your fork ) and pull. This from GitHub help: First up, add a remote to the original repo. Help here: http://help.github.com/remotes/

TortoiseGit with openssh key not authenticating using ssh-agent

本小妞迷上赌 提交于 2019-11-27 03:39:21
I'm setting up a git environment on Windows XP (msysGit 1.7.11, TortoiseGit 1.7.14) and trying to achieve following points : ssh connection on a port different than default 22 ssh authentification handled by ssh-agent So I create a ~/.ssh/config file : Host gitbox User gitolite Hostname XX.XX.XX.XX Port 154 PreferredAuthentications publickey IdentityFile "/c/Documents and Settings/kraymer/.ssh/id_rsa" When using the git bash CLI, everything works as intended. I'm struggling with TortoiseGit. I first installed TortoiseGit with Plink and using Pageant to load ssh private key. The automatic

Does TortoiseGit actually make Git a lot easier to use like TortoiseSVN? [closed]

夙愿已清 提交于 2019-11-27 01:57:43
With the easy experience of TortoiseSVN, I looked at some command line of SVN and it wasn't as easy to use. Does TortoiseGit actually makes Git a lot easier to use, just like TortoiseSVN did for the SVN command line? I don't think there should be any stigma attached to using TortoiseGit in preference to the command line git. After all, if you're developing in Windows then your primary interface with the file system is through Windows Explorer. TortoiseGit handles the most common use cases: checking out, checking in, diffs, logs, etc. If you find something you need to do that it can't handle

Remove saved credentials from TortoiseGit

佐手、 提交于 2019-11-27 00:59:06
My credentials are saved in TortoiseGit (using Wincred) but my password changed. The only way for me to pull from the repository now is to remove the Credential Helper. How can I simply change the password? Alternately, can I remove my credentials and save my new ones? Normally the invalid credentials should be purged automatically (after one unsuccessful authentication attempt). Go to Control Panel\User Accounts and Family Safety\Credential Manager (another way to get there is to Start->Run rundll32.exe keymgr.dll,KRShowKeyMgr ), there all saved credentials should be listed (prefixed with git

Git 'fatal: No such ref: HEAD'

Deadly 提交于 2019-11-27 00:13:44
问题 A weird thing happend to my git repository. When I try to commit something in tortoisegit window I receive all files from project. I cannot revert them, when I pull from server I receive fatal: No such ref: HEAD and fatal: Cannot lock the ref 'HEAD' . All my local branches are missing. Is there any way to resolve the problem? This is not first commit or something. This thing happend suddenly. EDIT: git branch -a says: Failed to resolve HEAD as a valid ref git status prints all project files

Tortoisegit asking password

浪尽此生 提交于 2019-11-27 00:08:24
问题 I just started to work on Git. I use windows 7 and has installed msysgit(1.7.8) and Tortoisegit(1.7.6). The repository is created on Linux server which is accessible thru LAN. The issue I'm facing is I'm not able to clone the repository using Tortoisegit, it asks for password and I'm not sure what password it is asking. At the same time I could clone the repository using Git Gui and do all operations. Can anybody please help me on understanding why Tortoisegit is asking password when Git Gui

Invalid SSL certificate when pushing to Git server

非 Y 不嫁゛ 提交于 2019-11-26 22:06:14
I am running Gitblit on a Windows Server and am trying to push data to a repository from another machine on the network. I have used a SSL certificate (not self signed, but I think signed by my company? Not really sure how that works but Chrome, IE, etc. see it is identity verified). The server that runs Gitblit is named itscm and on the developer's desktop I am using this URL to push data via TortoiseGit: git.exe push --progress "https://itscm:8234/git/TestRepo.git" master However, I get this error: fatal: unable to access ' https://itscm:8234/git/TestRepo.git/ ': SSL certificate problem:

TortoiseGit change default port 22

久未见 提交于 2019-11-26 21:54:01
问题 It's probably an easy question. I'm running on windows 8, and I want to connect to my company's repository. My company changed the default port from 22 to 1234 for some administrative reason. My git repository looks like git@office.comp.com:proj.git . First of all I don't understand the colon-notation in ':proj.git', I'm used to the slash-notation. Secondly I want a way to pull and push on that port either using TortoiseGit or from the command line. I tried changing the url like git@office