git-gui

how to set desired language in git-gui?

▼魔方 西西 提交于 2019-12-29 11:31:06
问题 I recently came to git for a project I participate to. I found git gui rather handy (under OSX Snow Leopard) to srtat with but I would much like if it were not localized (in French, in my case). Is there preference or hack to have git gui displayed in english? 回答1: For Windows users the are two choices as well: 1) Set the LANG environment variable to en . a) Overall for Windows: http://www.itechtalk.com/thread3595.html b) For the git shell only: If you don't want to affect anything else

How do I stage all files at once in Git Gui?

谁说胖子不能爱 提交于 2019-12-28 16:30:30
问题 I have just created a GIT on a folder. I now want to add the contents of that folder by "staging" all the files. In the GUI, is there a way to select all the files. I have well over 4000 files and clicking one at a time is proving to be a bit of a pain. 回答1: Yes , Select the items (select top one hit shift, select bottom one) and hit CTRL T Or go to commit -> stage to commit 回答2: Quite late, but one method is to add an option in the 'Tools' menu. Click 'Tools'>Add... Name it whatever you want

How do you undo a hard reset in Git Gui or Gitk on Windows?

只谈情不闲聊 提交于 2019-12-23 17:54:29
问题 I'm using Git Gui and Gitk on Windows. How do I undo a hard reset from within the past two hours? (Is it possible to do this from these applications, without using the command line?) I saw this SO post, which says that undos are possible before git's garbage collection occurs. I might have quit and reopened one or both of these applications. 回答1: If you had changes in your working tree that were not committed when you did git reset --hard, those changes are gone for ever. You have to use your

Git gui mergetool TortoiseMerge wrong file path

邮差的信 提交于 2019-12-22 18:19:39
问题 i'm having some problems configuring the git gui to run tortoisemerge In my .config there are these lines [merge] tool = tortoisemerge [mergetool "tortoisemerge"] path = C:\\Program Files\\TortoiseSVN\\bin\\TortoiseMerge.exe cmd = 'C:\\Program Files\\TortoiseSVN\\bin\\TortoiseMerge.exe' -base:"$BASE" -mine:"$LOCAL" -theirs:"$REMOTE" -merged:"$MERGED" keepBackup = false When i do 'git mergetool' from bash the tortoisemerge starts correctly I also modified mergetool.tcl adding the in the switch

504 gateway timeout on GitLab HTTP URLs

纵然是瞬间 提交于 2019-12-22 12:54:26
问题 I have installed GitLab 6.0 on a linux box and created a number of projects. I can create a local clone of each project using the SSH URL, but when I try to use the HTTP URL I get a 504 Gateway Timeout within seconds . When I paste the HTTP URL into SourceTree it says "Checking source" for a second or so, then "This is not a valid source path / URL". When I click on "Details..." it says: The requested URL returned error: 504 while accessing http://myserver/group/project.git/info/refs Git Gui

Invoking external difftool from git-gui?

[亡魂溺海] 提交于 2019-12-22 06:52:36
问题 I have p4merge configured so that from the command line if I do a "git difftool ... " then the external diff tool opens up correctly. I would like to open the external difftool from "git gui" instead of the command line. Is this possible? Is seems git-gui allows one to add a tool. But it is unclear to me how to get it working. Any pointers? 回答1: If you already have git difftool set up you can add an item for it: Add Tool dialog transcription: Tool Details box: Name: difftool Command: git

Git: how to repack all loose commits

空扰寡人 提交于 2019-12-21 12:17:29
问题 After using git gc and git repack (with various options) I still have 4825 loose commits in the folder .git/objects . I would like to have all of them in the pack file with the rest or in another pack file. I'm doing lots commit rewriting (amend + rebase) hence it's perfectly normal to have many unreachable commits. My .gitconfig contains these parameters to keep reflogs and unreachable commits for a long time. [gc] reflogExpire = 300 days reflogExpireUnreachable = 200 days pruneExpire = 90

How do I discard changes for a file in Git Gui?

筅森魡賤 提交于 2019-12-20 17:25:37
问题 Often when using Git Gui I would like to reset/checkout a single file or just dismiss a hunk. Is there a way to do this easily in Git Gui? If not, is there any particular reason that this feature is not available in Git Gui? 回答1: I know this way: The changes must be unstaged Go to Tools -> Add Choose whatever name you'd like for your command, then in Command write git checkout $REVISION -- $FILENAME Select (left-click) the file you want to checkout, without staging Choose from Tools the

How to skip “Loose Object” popup when running 'git gui'

假如想象 提交于 2019-12-17 10:13:21
问题 When I run 'git gui' I get a popup that says This repository currently has approximately 1500 loose objects. It then suggests compressing the database. I've done this before, and it reduces the loose objects to about 250, but that doesn't suppress the popup. Compressing again doesn't change the number of loose objects. Our current workflow requires significant use of 'rebase' as we are transitioning from Perforce, and Perforce is still the canonical SCM. Once Git is the canonical SCM, we will

GIT Bash for windows gives no result and returns to command prompt

≯℡__Kan透↙ 提交于 2019-12-07 15:58:52
问题 I'm a new user of GIT on windows. I have been using GIT on linux for a while but for some reason, I need to use GIT on windows. Now my problem is GIT bash for windows does not perform any remote operation and returns to command prompt with no msgs. For eg: git fetch, git pull, git remote show origin, etc will give you no result. Where as it does give me output for local operations like git log, git branch, git commit, etc. Also the GIT GUI Client gives error "Command Failed" for remote