Comments (5)
- @PhilipOakley, who knows more about Windows than I do.
Just catching up on old emails..
a) on windows you can have multiple Git and Git-Gui installations, especially if you have a mixed environment (personal, corporate, developer, historic, etc). In this case use the Help
menu with About Git Gui
. at the bottom (may need to stretch the window) you will see paths for the git wrapper, git exec dire and the git-gui lib. Check these in the different invocations of the gui.
b) on windows you can also have different config locations for the different git exe's, especially if they were installed with different rights. In some cases there was an extra config directory to conform to some Microsoft policy - I think that's gone now, but you may still have that version installed.
c) from the Repository
menu select the Git Bash
option, and then use pwd -W
to locate where the current path is, in Windows format, and possibly cd / && pwd -W
to locate where the 'unix' root directory is presumed to be for this particular bash/gui pair (again different for each install!).
d) having started the bash from the gui (and checked git version
, and switched to the relevant repo directory) use
git config --list --show-origin --show-scope
to see all your configs and where they are located. Look out for oddball values.
Hope that helps for any future debugging.
from git-gui.
+ @PhilipOakley, who knows more about Windows than I do.
Hello,
I'm using git-gui on Windows (right-click context menu -> Git GUI Here).
After moving my git setup to a new Windows system, and configuring all git options and ensuring git (bash) works fine, I started to use git-gui but to my surprise it does not function properly in remote operations. I checked the options menu and saw that it's missing user name etc. so somehow it is not getting the whole git config parameters (the global parameters definitely) or it got them initially (in first experiments) and did not update afterwards. However when starting git-gui from bash everything is okay.My questions
- are git-gui options saved somewhere and where ?
The global options are saved in whatever your default .gitconfig file is. On Linux and other Unix-like systems, that is $HOME/.gitconfig. I assume it is something similar on Windows. The local options are saved in .git/config
. Git Gui does not directly read the config file. It uses git config
or git config --global
to do those tasks. So if git config
works in your environment, so should Git Gui.
- does git-gui need specific environment variables set before run (my windows system is corporate with preset environment variables that I guess conflict with git setup where I have set my environment variables in bash's profile) or alternatively can I use a command line option to set where is the global git config file ? (something like GIT_GUI_HOME= ... for example)
Like I mentioned before, you need to make sure git config [--global]
works properly with your environment. That is where we get the configs from. I think the most important environment variable to look at is $HOME.
- where is a documentation with all git-gui options (as seen in options menu) and command line options ?
Unfortunately, there is none. See #8. Patches welcome :-)
from git-gui.
Thank you. The information was enough to find a workaround.
However I wonder if there are command line options for git-gui.exe and if you would be kind to mention the most important, or at least kindly point me to the appropriate source file for Windows in github.
(I came to this github repo from the web page about git-gui for WIndows so I guess I am at the right place :) )
from git-gui.
You can take a look at the man page: https://git-scm.com/docs/git-gui/. It is rather sparse on information though. It lists the subcommands and some of their options. There are some other options like --trace
for debugging and some options for citool
, but they are in source code mostly, and not documented.
Most of the configuration is not done via command line options. The preferred method is via git config
. And some options come through environment variables. But again, those are scattered throughout the codebase and there is no cohesive documentation for those. Most of the git config
options are available in the options dialog but there are some that aren't listed in the dialog. You can only find out about them when reading the source. The bulk of the options are present in the options menu though.
So yeah, things are scattered all over the place.
(I came to this github repo from the web page about git-gui for WIndows so I guess I am at the right place :) )
Yes, this is the "official" Git Gui repo. Commits from here end up in Git for Windows eventually, though they go through the main Git repo maintained by Junio first.
from git-gui.
Thank you :)
from git-gui.
Related Issues (20)
- Issutyrant()--51711*e port(25,30,52)Title
- "Stage Hunk/Line For Commit" grayed out when having a custom diff
- Currently we don't align experiments.css behavior with webpack for the following reasons:50 HOT 1
- ### Setup '==
- We are able to export list of added repositories to a file:Machine HOT 1
- Wrong character encoding in push window
- Prevent TrojanSourceInjection in gitk HOT 3
- hooks are ignored in git worktrees other than the main worktree HOT 1
- Not working - black window HOT 1
- Can the "push" button optionally be removed/disabled/hidden ? HOT 9
- 'git gui' doesn't work in pair with 'git submodule foreach'
- How to make it into a proper mac app? HOT 2
- git-gui crash under macos 13 beta HOT 2
- Compress dialog popping up every time the repo is opened HOT 4
- On the Windows context menu the Target is empty
- Xlib error on console
- Please make diff colors configurable
- there used to be a way to find out keyboard shortcuts. HOT 1
- prepare-commit-msg hook fails because the commit message file does not exist
- Explore Working Copy can't find explorer.exe
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-gui.