Do not show pull window TortoiseGit - tortoisegit

I do need to pull a lot, and now I need to click Git Pull, click OK and then it pulls. Is there an option to skip this window? I never change the pull options so it has no use for me.
I've searched the settings but I can't find it anywhere..
Using TortoiseGit 1.8.15.0

Perhaps using Git Synchronization dialog.
Right click on you repo and click context menu item Git Sync....
Show you:
Then, keep this dialog opened.
If that button does not present Pull for you, using the drop menu to select Pull.

Related

TortoiseGit: Context menu not showing git sync option

Yesterday i find out that the sync option and the pull otion have disapeared from my TortoiseGit context menu. I tried checking them in the context menu but they where already checked. I also tried to uninstall TortoiseGit and install it again but it doesn't fix the problem.
Does anybody know what the problem could be?
Please read title for "Context menu 2". It states "Hide the selected items on the context menu".
That is the reason why those options are hidden by default.
Cf. https://tortoisegit.org/docs/tortoisegit/tgit-dug-settings.html#tgit-dug-settings-look-feel and https://tortoisegit.org/docs/tortoisegit/tgit-dug-settings.html#tgit-dug-settings-look-feel-extended

Git GUI for Windows' window is Missing and/or Invisible

The basic GUI that comes with the install of git: https://git-scm.com/download/win; was working fine in Windows 10 until one day I used it on desktop 3, and then I must have switched desktops and closed it or something because now when I launch the GUI it appears to open just fine but there's no active window on any desktop. The icon shows up on the task-bar and when I hover over it, it does show a perfectly fine preview of the running GUI, but when I click on it it doesn't go anywhere.
How can I get the window back?
So apparently the window does exist and no it's not invisible; it has just wandered off the screen.
There's a couple ways to solve this:
You can simply, right-click the task bar and choose any of the options: Cascade windows, Show windows stacked, or Show windows side by side.
However I prefer not to have all my windows resized just to get at that lost sheep, and so I click on Git GUI's task-bar icon to make it active then press and release alt, then pres and release space-bar, then use the arrow keys to move it back on screen(to the right in my particular case).
(Yes right click task-bar+U uncascades, but then I found myself back where I started)
Update: January 22, 2021
So I was poking around in the git config and it looks like under the local settings there's an entry called gui.geometry. After playing with this value for a few minutes it looks like it has the following format:
(width)x(height)+(left)+(top) (split_modified) (split_staged)
where all of the tags above are in pixels, and yes negative values of (left) move it off screen.
So to reset the gui for that repo (and if you've got the git PowerShell stuff installed) you can: close the gui, go to the folder, open up a PowerShell prompt there, give the command:
git config gui.geometry '900x500+100+50 300 250'
then reopen the gui, which that should at least move it back on screen where you can drag it back to where you want it.
also if you just want to fix the left position you could see the current value with
git config gui.geometry
then just change the negative values you have for +100 or +50 to move it back on screen.
Update: April 20, 2021
End on a one-liner?
git config --get-all gui.recentrepo | %{try{pushd $_;$geo=git config gui.geometry;git config gui.geometry ($geo -replace'^(.*?)\+.*?(\s.*)$','$1+50+50$2');write-host "Updating repo: $_`n Found Geo: $geo";popd}catch {write-warning "Skipped: $_"}}
Click on Git GUI's task-bar icon to activate.
Press and release Alt.
Press and release Space-bar.
Select "Move" option in the context menu.
Press Left or Right keyboard's arrow keys to move invisible window back to screen.
I have faced a similar problem under Windows 10.
The command git gui did not start the tool... but a weird Tcl-Tk window appeared in the taskbar.
To solve, I just submitted the following command in order to unset (= to reset) the git gui settings of my repository :
git config --remove-section gui
( the local config file that contains the git repository's settings is myrepository/.git/config )
Then I restarted Git GUI ( git gui ) and it was visible again. The following lines were added automatically into the local config file :
[gui]
wmstate = normal
geometry = 893x435+234+234 175 196
So the options from the task-bar (cascade, windows side by side, and stacked) did not work for me.
I had to go to the taskbar, identify the app, right-click and select Maximise.
This happen to me when change to an environment with different monitors.
To solve it, right click on desktop empty space, select "Display settings", some rectangle represent monitors show in "Rearrange your displays". Move any one to different place (change their order) and apply, the disappeared window is moved to one of the screen.
Then do it again to put the monitors to correct position.
This method works for any other applications, not only Git-GUI.
I also came across with this nasty issue for some (local) git repos (on git-gui/MINGW64).. This works for me:
cd dirWhereLocalRepoExist
check if there gui.geometry option exists: $ git config --list
If true: $ git config --unset gui.geometry #remove the option from --local config
$ git gui #hopefully the Git GUI window will show up..
Cheers!

Switching branch on Xcode 9

I am having trouble finding the menu item to switch branch using Xcode 9. The working copies menu seems to have disappeared. Any ideas?
Xcode 9
Xcode 8
Press ⌘2 to open the new Source Control Navigator.
Right-click on the master icon.
To switch to a different branch
Right-click on a non-current branch
Choose Checkout...
Press ↩ or click on the Checkout button.
Expose the left side window (Navigator) in your Xcode by selecting this option (you will see this on the top right side of your Xcode window):
Now select the second tab:
Right click on the branch you are intending to checkout and hit the checkout button from menu:
It seems that Apple has moved Source Controls feature like change branch, version history to separate tab in Navigator area for Xcode 9.x
Below are step to perform branch switch :
Open the Navigator area (if it is hidden) by pressing left pane window present on top right of Xcode or use shortcut cmd + 2
In Source control navigator you can see Branches, Tag present for your project.
Now, if you want to switch branch then select the branch to switch and right click on it.
Select Checkout. This will prompt an alert Do you want to check out “<branch name>”? Select Checkout.
Now this will switch your branch to selected one after sometime.
Note: In order to switch between branches you need to commit or discard changes done in project.
You can even see Log history by selecting branch. Commit history can be viewed based on last 24 hours, last 7 days and last 30 days.
1) Press show navigator button (top right corner of Xcode):
2) Show the project navigator, expand Remotes folder:
3) Expand the origin folder, right click the branch you want to use, and click Checkout....
Follow the below link for the clear explanation of each and every functionality like, Commit, pull, push, etc.
https://www.raywenderlich.com/153084/use-git-source-control-xcode-9

TortoiseGit - where is the reset option for a branch?

I am using TortoiseGit 64 bit version on Windows 10. I know it has a reset option because the documentation talks about it. However, I cannot find the menu option for "Reset". I have searched the preferences to see if it needed to be added but I cannot find it anywhere. Here is a screen capture of my TortoiseGit menu.
Right now, the reset dialog can only be opened using the log dialog context menu.
cf. https://tortoisegit.org/docs/tortoisegit/tgit-dug-showlog.html
To add onto MrTux,
Go to the log dialog, right click on the commit you want to revert to and there should be a 'reset "current branch" to this' popup. If you want to clear all local changes in favor for this commit, then perform a Hard reset.
I had the same problem but couldn't figure it out from the answer here.
But the way I did it was, after I did a fetch there was the option to do a reset in the dropdown in the bottom corner of the dialog

Is there a way to detach a project from CVS in Xcode?

XCode's CVS support is abysmally bad. Or maybe it's just the server in my organization. Either way, it's leading to more headaches than it's worth so I'd like to "detatch" the project as I can in Eclipse. Is there an easy way to do this or do I have to manually delete all of the CVS files?
You have two choices.
Double click on your project in the main source list to bring up the "Project "myProject" Info" window. Make sure the "General" tab is selected. At the bottom of that tab select "None" from the "SCM Repository" popup menu and close the window.
Or, go to Xcode Preferences window and select the "SCM" tool, select the repository you want to remove, and then remove the repository using the "-" button in the lower left hand corner of the dialog box. This option is a bit more drastic.
These should both leave all of the invisible CVS directories alone. This will allow you to manage the repository from the command line and completely hide the CVS info from Xcode.
Good Luck.

Resources