TortoiseGit no commit option in context menu - tortoisegit

TortoiseGit installed.
Git Windows installed.
I created a new repository in Bitbucket.
git init
git remote add origin https:// etc.
Created a small file.
In File Explorer, right-click file, TortoiseGit -> Add.
In File Explorer, right-click parent subdirectory, TortoiseGit -> (no commit menu option).
How does one commit a file using the context menu for TortoiseGit?

See the following screenshot of a context menu. The TortoiseGit commit entry is directly above the TortoiseGit submenu entry.
Please beware, that the TortoiseGit menu is configurable and you can hide entries. Hold the shift-key while opening the context menu to see all available commands.

In my case, without shift-key I could not see Commit in any of the menus.
I found out that in Settings, I have it checked in both context menu and context menu 2. When I unchecked it to be only at one place, it was fixed.

Related

Open old Github Commit in Visual Studio

Steps:
Navigate with a browser to the github.com/user_name/repo_name/commits page
To the right of the desired repo click the far right <> button
with the tooltip "Browse the repository at this point in the
history."
Note the page just navigated has a URL like
github.com/user_name/repo_name/tree/Some_UID
Click on the green "Code" button in the repo, then click "Open
in Visual Studio".
After launching the MS VS Web Protocol Handler Selector from the
popup dialog (with the "always allow Github to ..." checkbox), VS launches showing the Team Explorer dialog, with the URL of just
the base repo (github.com/user_name/repo_name) in the remote URL
box.
Attempt to replace the default URL with the desired commit
(github.com/user_name/repo_name/tree/Some_UID) in the box and then
click the Clone button.
The following message is generated at the top of the dialog:
Git failed with a fatal error.
repository 'https//github.com/user_name/repo_name/tree/Some_UID/' not found
An empty directory with the name Some_UID is also created in the base repository directory.
Is there another way, preferably from the VS/Github GUI, of opening an older commit in Visual Studio?
Edit: The obvious solution is to open the Git history window in VS and right click on an old commit in order to revert to it. Given that Git Revert creates a new commit, which adds to the Git history chain,- the idea here was, in fact, to somehow open a new solution (in a different directory) with the old commit for quick testing, and delete it when finished. An idea which might seem feasible so long as the new (temporary) solution had no Git, or at least no bindings to Git that would point to the original solution.
Clone the origin project.
Find the commit id, then reset to the id locally.
git reset --hard xxxxCommitIDxxxx

SnailSVN delete branch

I have SnailSVN client on my Mac machine, however I can't seem to find an option for deleting remote SVN branch. Is this option possible through this SVN client?
the context menu options are available only in the right window of Repobrowser. You must see main SVN directory on the left side and all the folders on the right. Do not try to find 'delete' option selecting your project folder in the left window, just try to find it when you literally see your folder in the right.
Compare these two screenshots: left window context menu VS right window context menu.

Context menu for folder does not contain "Add to ignore list" tortoisegit

I use TortoiseGit 1.8.16. But the context menu for a folder does not contain the "Add to ignore list" option.
Right click on folder in repository. I expect to see "Add to ignore list" in context menu. This item is not in the context menu.
How to add file in ignore via TortoiseGit?
In TortoiseGit the context menu is configurable in two ways.
1) You can configure which entries to show directly on the context menu (and not in the TortoiseGit submenu). This can be configured in TortoiseGit settings -> Context menu.
2) You can hide entries by default, so that those are only visible if you hold the Shift-Key while opening the context menu. This can be configured in TortoiseGit settings -> Set Extended Context menu.
In your case, I suppose that the entry is hidden. Btw. the "Add to ignore list" is only available for unversioned folders (otherwise "Delete and ignore is available").
It is also possible to ignore items from the context menu of the commit dialog.
See the TortoiseGit manual.
Note on Windows 11 the context menu settings choice is different.
1- R.click on the required folder and select Settings:
2- At General>>Context Menu : Check "Add to ignore list", then click OK
3- Icon will appear at the context menu:
For ignoring files, you Can do:
$ git rm -r --cached gen/ bin/
$ echo "gen/" >> .gitignore
$ echo "bin/" >> .gitignore
I can do it with these steps below!
Delete the file you want to ignore first. You can undo it later to get it back from the recycle bin. Or you can move it to another folder temporarily.
Do git commit until the commit window opens. Don't commit!
You'll see the file you want to ignore is going to be committed. Right click on the file and you'd see the option "Add to ignore list".
Click it! Choose what kind of ignore you exactly need, and done!
I know this is really old but I recently had this issue and it was because the directory had been set up for git previously then removed by deleting the .git directory. When re-instating it as a Git Repo the old .gitignore file came back and the directories I was trying to ignore were already listed in it.
To test the theory I removed all entries from the old .gitignore file, saved and the "Add to ignore list" was back in the context menu

Cannot rebind TFS Solution in Visual Studio 2013

I noted that some files in my solution explorer are not in source control as they do not have a padlock icon. I tried to rebind the solution as suggested here but I do not have a Source Control menu item under file.
It seems you are using Git as your source control. There is no Source Control menu item under File for Git. It’s a normal phenomenon. This menu item is only for TFVC.
No matter your folder(Solution items) are adding in source control or not, there is no padlock icon in front of it. It’s by designed. Normally, if you can see it in Solution Explorer, means it has been added in source control. You can double check it through your Web Portal(Code→Git→Your solution)
If you can’t see it , you want to add it in source control. Right click your solution in Solution Explorer, select source control, select commit, then commit and push. Or use git command, $ git add . /$ git commit -m "First commit"/ $ git push origin master
You can enable/disable the plugin selection from Tools->Options if you are using TFVC as your source control although I suspect Patrick is right with his assumption on Git.
I was indeed using Git but even right-clicking on my solution did not provide me with the source control option (as #Patrick suggested). Eventually I noted that in Team explorer > Changes there was a section containing Untracked Files. I clicked Add all, and these files started being tracked, thus solving my problem.

Add command in TortoiseGit

I'm just beginning to use TortoiseGit for Windows (I'm new to git) and I don't see the Add command in the context menu when I right-click on a directory or file. As I understand it, I should run this addcommand each time I want an update to a local file to be "staged". Here I don't see such a thing, the only "similar" thing I can do is run a commit instead, which is obviously not the right thing to do.
Besides, when I create a new file I also want to add it, but the context menu only proposes to "Add to ignore list".
Am I missing something here?
You can add a file or folder to a git repository by right-clicking on it, then in "TortoiseGit"-submenu select "Add.." (should be the first menuitem, right above the "Add to ignore list"-submenu).
Anyway... another way of staging files or folders via TortoiseGit is to right-click the repository > TortoiseGit > Check for modifications > select the filed/folders you wish to stage from the list of not versioned files > right-click > add.

Resources