TortoiseGit Diff not showing up in context menu - windows-10

Scenario:
I have Windows 7 with TortoiseGit 2.2.0 on my machine.
Added a Git user recently, she got 2.4.0 installed on her Windows 10 machine.
The issue is with the right-click context menu on her machine. The options "Diff" and "Diff with previous version" are not showing up in the Windows context menu or the "extended" TortoiseGit menu on her machine. Other items, like Push/Pull/Fetch show up fine in the extended menu.
These items were all checked in the "Set Extend Menu Item" options in TortoiseGit. I tried adding them to the "Context Menu" settings as well, tried restarting her machine after. This did not work, either. The Diff options just are not showing up in her menus. We've tried right-clicking both files and folders in the git repositories. They just never show up.
What might not be set right?

Checking for "Extended context menu" the item is only shown when you hold the SHIFT key when opening the context menu - this is also stated above the list. To move it to the TortoiseGit submenu, uncheck it on the "Context menu" settings page.
Please see https://tortoisegit.org/docs/tortoisegit/tgit-dug-settings.html#tgit-dug-settings-look-feel.

Related

JetBrains Rider to stop opening diff tab on navigation

I am a huge fan of JetBrains Rider it is really adaptable to the tastes of most devs. I could not find settings to remove an annoyance from a specific navigation function.
Navigating on the tree view of the git changes opens up a new tab to show the selected file differences, this can also be triggered via shortcuts. It is really annoying to have to close it every time I tab out and back into Rider.
The file differences are also displayed besides the git navigation tree, so displaying a new tab just gets in the way.
Is there a configuration to disable the automatic display of this diff on a new tab?
Following this blog post from JetBrains I did what they commended here:
After opening a project, press shift shift (Search Everywhere) and
search for “Registry”. Next, start typing any of the following three
switches to enable or disable things:
show.diff.preview.as.editor.tab – toggles the in-editor diff preview
I then disabled the show.diff.preview.as.editor.tab setting.
The diff tab no longer appeared
For newer versions, the setting is now show.diff.preview.as.editor.tab.with.single.click
It's actually quite easy to do that via the commit settings menu in 2022.2. Just click on the cog wheel and deselect "Show Diff Preview on Single Click".

PyCharm: Can't open two projects in the same window

I am trying to open a second project in my current PyCharm window, and I got the following pop up window:
However, the choice of "Add to currently opened project" check box doesn't show.
The tutorial at https://www.jetbrains.com/help/pycharm/2018.1/opening-multiple-projects.html?utm_medium=link&utm_source=product&utm_campaign=PC&utm_content=2018.1
has the check box. Why doesn't my pop-out window have the check box? Thanks!
According to this,
the option is only available for opening a new project. Also, see the bug tracker. In order to get the "add to currently opened projects" you have to go through "File" -> "Open" not "File" -> "Open Recent". Tested with PyCharm 2018.1 (Community Edition) on Windows 10.

GitBash duplicate taskbar icon

I've just re-installed Git on my Win10 PC and tried to pin Git Bash to my taskbar.
For some reason now, when I open Bash from my taskbar shortcut, it displays duplicate icon on the taskbar. I tried to pin that icon but once I end the terminal session, that shortcut is deleted. I've tried multiple Win10 sites but most just say to repin the new icon.
Prior to updating I could pin it fine with no issues.
I did this for Windows 7:
Make sure there was no other (older) Git Bash appearing in Start Menu
Remove any existing pinned Git Bash from Taskbar
Launch Git Bash
Pin this launched window to Taskbar (instead of the one appearing in Start Menu)
In my case, launching git-bash.exe and pinning the result produced a shortcut to cmd.exe with no arguments, which just opened a regular command window. Creating a shortcut to git-bash.exe directly (either manually, or by pinning the existing Start Menu shortcut) caused the opened window to be separate from the pinned item.
What worked in my case (more manual):
Create a shortcut to this command: %windir%\system32\cmd.exe /c "C:\Program Files\Git\bin\bash.exe" --login
(Optional) "Change Icon...", then select the git-bash.exe location (one directory up from bash.exe), and click the icon selection area for the icon to show up and to select it.
Update the "Start in" value to %HOMEDRIVE%%HOMEPATH%
Pinning the git-bash.exe fixed the problem for me. This also fixed the problem with broken icon graphic.
NOTE! This was on Windows 7 - haven't tested on Win10!
Open Windows Explorer.
Navigate to C:\Program Files\Git.
Right click git-bash.exe, select Pin to Taskbar.
Shift-right click the newly pinned icon, select Properties.
Add to the end of the field Target: --cd-to-home
Set the value of the field Start in: %HOMEDRIVE%%HOMEPATH%
Press OK.
NOTE! This was on Windows 10
I don't know how it works but open the git-bash.exe file and pin the opened file on the taskbar
Do not pin the program which is not opened or else it wont work
None of the other solutions worked for me so here's what I did on Windows 10:
Open Windows Explorer
Navigate to C:\Program Files\Git
Right click on git-bash.exe
Right click on it and select Pin to Taskbar. This creates the first taskbar item.
Run git bash by clicking on the taskbar item. This creates the second taskbar item.
Pin the second taskbar item.
Open the properties (right click on the icon -> right click on the app name -> properties) of the second taskbar item and fix them:
Set Target to "C:\Program Files\Git\git-bash.exe" --cd-to-home
Set Start in to %HOMEDRIVE%%HOMEPATH%
Change the icon... Go to C:\Program Files\Git\ and select git-bash.exe and the icon.
Close the properties window and unpin the first taskbar item.
I have faced this problem. Here is a tried and tested solution. Very easy. Out of the 2 icons that you see, right-click on the inactive icon and do Unpin from taskbar. Then click on the active icon and do Pin to taskbar.
It's easy for Windows 10.
Open Windows Explorer
Navigate to C:\Program Files\Git
Select git bash
Select the 'Manage' option which appears under the field in purple 'Application Tools'
Select the 'Pin to Taskbar' option which shows on the far left

Where is my "Recent Projects and Solutions" option?

I recently installed Visual Studio 2012, and I've been banging my head against my desk looking for missing options.
I use the Recent Projects and Solutions menu option (under the File menu) a lot in Visual Studio 2010, but don't have anything like that in Visual Studio 2012. However, my boss does, so I know there's something wrong with my install or an option I've missed.
I've casually looked through registry settings for anything like "Project" that exists in my 2010 settings but does not exist in my 2012 settings, and came up empty handed. Does anyone know how to fix this?
It looks like some part of the upgrade process just removed this menu option for me. Following nithins link to this question, I followed the instructions the author created to re-create the Recent Projects and Solutions menu item.
For posterity, those steps were (performed in Visual Studio 2012):
Under the Tools menu, click Customize...
Click the Commands tab.
Change the Menu bar selected option in the drop-down list to File.
Click Add New Menu.
Click Modify Selection, rename to Recent Projects and Solutions.
Under the Menu bar drop-down list, select File | Recent Projects and Solutions.
Click Add Command...
(The Add Command menu should appear here.)
Under Categories on the left-hand side, click File.
When the Commands list (on the right-hand side) refreshes, click Recent Project list, and click OK.
Click Close.
Happy project switching!
I had the exact same problem, but I had the sense that other menu items were missing as well.
What I did was go into Tools => Import & Export Settings, choose Reset all settings, and then select the same profile as when I installed Visual Studio. (General Development Settings.) That fixed the issue.

Subclipse (1.8.5) requires cleanup / refresh cycle to detect changes made with TortoiseSVN (1.7.4)

My problem:
Subclipse does not update locked status overlay icons in eclipse after I lock/unlock some files with TortoiseSVN in windows explorer (and vice versa).
Is this expected behaviour or am I missing a setting?
The files have the svn property "svn:needs-lock" set.
I can sync Subclipse again by first clicking "Team - Refresh/Cleanup" and then "Refresh F5".
I am not a 100% sure but I think with Subclipse 1.6.x and TortoiseSVN 1.6.x I was able to just hit F5 in eclipse, and the status was refreshed correctly.
Thank you for your time.
I do not think you should have to do the second F5, but we added the Team > Refresh/Cleanup option for this reason.
With pre-SVN 1.7.x releases any change in the working copy caused files in all of the hidden .svn folders to be modified. When you hit F5 in Eclipse, it would see these changed files and fire off notifications that Subclipse would see and use that to refresh decorations.
With SVN 1.7, all this information is consolidated in a single location, and it sounds like it probably does not even live inside your Eclipse project folder. So F5 in Eclipse effectively does nothing because no files on the filesystem that Eclipse can see has been modified. Eclipse does not send out any notifications.
The Team > Refresh/Cleanup option calls the same Eclipse action as F5, but it also triggers an explicit refresh of SVN cached information regardless of whether Eclipse sees any changes.
Just to explain in more detail how to create the keyboard shortcut:
I was once pretty desperate to get this keyboard binding to work and after a lot of head banging found out that I also had to enable the "SVN Command Group" in my eclipse perspective (as explained here: SVN key bindings not working in Eclipse):
You can bind the F5 key to the "Cleanup/refresh" option of the SVN menu.
First,you must go to Window dropdown menu > Customize Perspective > Command Groups Availability and there check the SVN box.
With this option you will get a dropdown menu called SVN with all the relevant commands.
Then you go to Settings > General > Keys :
unbind the F5 key if you want to use this key
bind the command %CleanupAction.label to F5 or any key you may find useful (like Shift+F5 if you don't want the F5 key to be unbind.)

Resources