git-gui

git checkout revision of a file in git gui

妖精的绣舞 提交于 2019-12-07 06:53:36
问题 Is there a good way to checkout revisions of a specific file in git gui like an add tool or something? Tried adding a new tool as: git checkout $REVISION $FILENAME But it only allows branch revisions out, not a specific commit. Is there a particular var I coud use to do that? 回答1: You could try: $ git show $REVISION:$FILENAME with a ':' syntax as described in git rev-parse. That would be if you can specify for $FILENAME the full path relative to the top directory of your project (the

GIT: How to get rid of the annoying CRLF message on msysgit (windows)?

旧街凉风 提交于 2019-12-07 04:27:35
问题 Practically everytime I stage a textfile (that's most of em), I get the message from git gui (I use msysgit) that It replaced (or is about to) line endings with CRLF's. Obviously I want that (and there's a setting for it huraah), but I don't want the annoying message popped up all the time! Any way to keep the setting, but turn off/disable the popup message? I have no idea how this works with GIT on the commandline, but I like msysgit's staging process :) so I'd rather not change to bash. 回答1

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

安稳与你 提交于 2019-12-06 01:03:14
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 operations. I tried re-installing it several times. I tried a previous version 2.5.3 of GIT as well (latest

GIT: How to get rid of the annoying CRLF message on msysgit (windows)?

旧时模样 提交于 2019-12-05 07:13:43
Practically everytime I stage a textfile (that's most of em), I get the message from git gui (I use msysgit) that It replaced (or is about to) line endings with CRLF's. Obviously I want that (and there's a setting for it huraah), but I don't want the annoying message popped up all the time! Any way to keep the setting, but turn off/disable the popup message? I have no idea how this works with GIT on the commandline, but I like msysgit's staging process :) so I'd rather not change to bash. The command line just prints a message, and that's it. I don't think that the message box can be disabled,

What is a Git Revision Expression?

坚强是说给别人听的谎言 提交于 2019-12-04 07:41:45
问题 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? 回答1: git needs to be able to identify a commit during a number of

Updating the Git index failed, LF will be replaced by CRLF?

筅森魡賤 提交于 2019-12-04 07:18:09
I'm using git-gui for version control and pushing them to remote locations. When I tried to Rescan files for changes, I got this message and I'm not sure what that means. Please help me out here. Updating the Git index failed. A rescan will be automatically started to resynchronize git-gui. warning: LF will be replaced by CRLF in bin/jarlist.cache. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in gen/com/click4tab/pustakalpha/BuildConfig.java. The file will have its original line endings in your working directory. warning: LF will

Git: how to repack all loose commits

混江龙づ霸主 提交于 2019-12-04 04:10:21
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 days You may wonder if it make sense but I already needed and have recovered a few commits made several

Can I see what commands git-gui is executing?

二次信任 提交于 2019-12-03 12:55:18
问题 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. 回答1: 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

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

夙愿已清 提交于 2019-12-03 11:12:22
问题 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! 回答1: Apple

Where is git submodule update in SourceTree?

独自空忆成欢 提交于 2019-12-03 08:22:30
问题 How can I update git sub modules in SourceTree? 回答1: 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.) 回答2: 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. 回答3: Here is the windows version: This command assumes the location