git-gui

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

自闭症网瘾萝莉.ら 提交于 2019-12-03 04:48:05
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? ThanksForAllTheFish 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 command you just created The chosen file will be checked out to HEAD revision I had a same

Set UTF-8 display for Git GUI differences window

别来无恙 提交于 2019-12-03 04:14:11
问题 I can't remember how I made Git GUI to display UTF-8 encoded differences correctly. Also I can't find the guide in search engines. Now I need to do this at new workplace. Could you write down instructions? OS: Windows 7 回答1: # Global setting for all you repositories > git config --global gui.encoding utf-8 # For one repository only > git config gui.encoding utf-8 Or from the GUI window: Edit -> Options... -> Default File Contents Encoding -> Change and select "Unicode (UTF-8)" In the Options,

Can I see what commands git-gui is executing?

久未见 提交于 2019-12-03 03:11:04
Is there a way to see what commands git-gui is executing? Either in some status bar, or log perhaps? That would be really useful for learning the command line better. Yes. git-gui accepts a --trace option which will make it print each git command it executes on stderr. If you are running on Windows where there is no stderr, then it also shows the Tk console and this output is visible there. On Windows you can also show the console with Ctrl-F2 even without the --trace option if you want to do some debugging on the running application. On other systems, stderr will appear in the console window

Did Apple remove the 'git gui' command in XCode 4.5 command line tools?

て烟熏妆下的殇ゞ 提交于 2019-12-03 02:43:40
After updating to XCode 4.5 and installing the developer tools I can no longer run the 'git gui' command from the command line. It says: $ git gui git: 'gui' is not a git command. See 'git --help'. I'm running this version: $ git --version git version 1.7.10.2 (Apple Git-33) Searching the git docs (http://git-scm.com/docs/git-gui) shows 'git gui' should be available, and hasn't changed since version 1.7.7. So did this Apple version of git remove this command? I use it all the time! Apple did indeed remove the 'git gui' command, probably because they were removing X11 which 'git gui' is based

When to delete branches in Git?

自闭症网瘾萝莉.ら 提交于 2019-12-03 00:03:01
问题 Suppose we have an application that's stable. Tomorrow, someone reports a big ol' bug that we decide to hotfix right away. So we create a branch for that hotfix off of "master", we name it "2011_Hotfix", and we push it up so that all of the developers can collaborate on fixing it. We fix the bug, and merge "2011_Hotfix" into "master" as well as into the current development branch. And push "master." What do we do with "2011_Hotfix" now? Should it just sit out there as a branch forever until

Where is git submodule update in SourceTree?

北城余情 提交于 2019-12-02 22:04:53
How can I update git sub modules in SourceTree? I couldn't find the answer myself, so I created a custom action. Go to Preferences, Custom Actions, and enter the following info: (This is on a Mac. Your path to the git executable may vary.) Just double-click on the submodule or left-click and open the module Once in the submodule, the UI is like any git repo , press on pull/fetch to update to the header. And voila. Here is the windows version: This command assumes the location of your sh.exe - depending on how you setup SourceTree it could be somewhere else. /c %LOCALAPPDATA%\Atlassian

How to do a rebase with git gui?

那年仲夏 提交于 2019-12-02 17:51:43
I know how to do a git rebase from the command line, but how do you do it with the official git-gui ? Add this to the .gitconfig file in your home directory to add rebase commands to the Tools menu: [guitool "Rebase onto..."] cmd = git rebase $REVISION revprompt = yes [guitool "Rebase/Continue"] cmd = git rebase --continue [guitool "Rebase/Skip"] cmd = git rebase --skip [guitool "Rebase/Abort"] cmd = git rebase --abort [guitool "Pull with Rebase"] cmd = git pull --rebase Leif Gruenwoldt In git-gui : Go to Tools -> Add and then enter a custom command i.e. git rebase master . Select Add globally

Set UTF-8 display for Git GUI differences window

喜欢而已 提交于 2019-12-02 17:06:29
I can't remember how I made Git GUI to display UTF-8 encoded differences correctly. Also I can't find the guide in search engines. Now I need to do this at new workplace. Could you write down instructions? OS: Windows 7 # Global setting for all you repositories > git config --global gui.encoding utf-8 # For one repository only > git config gui.encoding utf-8 Or from the GUI window: Edit -> Options... -> Default File Contents Encoding -> Change and select "Unicode (UTF-8)" In the Options, you'll see that there are two panel, the one on the right is for all repositories, the one on the left for

Decent Git Branch Visualization tool [closed]

左心房为你撑大大i 提交于 2019-12-02 16:18:57
I'm using git for a personal and big project which has a wide scope (not just programming) and lots of file. Hence I've a lot of branches and merges and I want to have a nice visualization tool for branches and merges in Git (esp. if it offer an animation just like gource or graph capability like PlasticSCM). gitk or git log are nice tools and I'm currently use them but not the exact solution. I like open source projects, and I prefer an application which just do the job (not a whole git front-end) however if there is no open source solutions, closed ones or heavy git softwares are welcomed. I

What is a Git Revision Expression?

不羁的心 提交于 2019-12-02 15:32:46
So, I am using Git GUI to make a repository. But I cant find ANY trace on Google, the Documentation, or anywhere else what a 'Revision Expression' is, and it is required to create a new Branch. Also, it seems that this is used many other places in the program, so I belive it is important to know. I did find a question on this on StackOverflow, but the guy never got an answer. I just need to know: What is a Revision Expression? git needs to be able to identify a commit during a number of common operations There are a number of ways to identify a commit. You could use a branch, tag, commit sha1,