TGit | Control TortoiseGit from within Visual Studio | Code Editor library
kandi X-RAY | TGit Summary
kandi X-RAY | TGit Summary
Control TortoiseGit from within Visual Studio.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of TGit
TGit Key Features
TGit Examples and Code Snippets
Community Discussions
Trending Discussions on TGit
QUESTION
Below is what I get when trying to install angular globally. Not sure why it is trying to install from git...
C:\D\Ts.NetAngular> npm install -g angular/cli info: please complete authentication in your browser...-session 3cdebc65d33fb371 npm ERR! Error while executing: npm ERR! C:\Program Files\Git\cmd\git.EXE ls-remote -h -t ssh://git@github.com/angular/cli.git npm ERR! npm ERR! Host key verification failed. npm ERR! fatal: Could not read from remote repository. npm ERR! npm ERR! Please make sure you have the correct access rights npm ERR! and the repository exists. npm ERR! npm ERR! exited with error code: 128 npm ERR! A complete log of this run can be found in: npm ERR! C:\Users...\AppData\Roaming\npm-cache_logs\2020-12-08T23_50_51_414Z-debug.log
And when I open the gitlog file, I see the below...
...ANSWER
Answered 2020-Dec-09 at 03:42Using following commands to uninstall :
npm uninstall -g @angular/cli
npm cache clean --force
Using following commands to re-install:
npm install -g @angular/cli
QUESTION
I have this code in my $profile in PS version 5:
...ANSWER
Answered 2020-Oct-24 at 08:46You get the syntax error because you call findstr.exe
with the empty argument before checking it. Reversing the order should do it:
QUESTION
I am looking for the equivalent of git log --pretty=fuller
in Tortoise git. https://tortoisegit.org/docs/tortoisegit/tgit-dug-showlog.html for example consistently just says "date" while there are two dates -- and Tortoise Git actually allows you to alter one of them.
ANSWER
Answered 2020-Mar-07 at 09:24You can open the context menu on the columns (as in Windows Explorer) and select the columns you want to see (or change the order or the sizes).
QUESTION
I'm using TortoiseGit 2.8.0.0 with Git 2.20.1.windows.1 on Windows 10. In TGit I specified a start_commit_hook to execute a .bat
file from the home folder of the local repository.
According to TortoiseGit Manual:
Start-commit: Called before the commit dialog is shown. You might want to use this if the hook modifies a versioned file and affects the list of files that need to be committed and/or commit message. However you should note that because the hook is called at an early stage, the full list of objects selected for commit is not available.
And indeed that's what I want: The hook shall modify some files before they are committed, while this is not regarding the commit message.
Problem: The hook script is executed later than expected. This happens after the commit has been executed, which causes the files to be changed after the commit is finished.
Did I miss anything to configure?
...ANSWER
Answered 2019-Nov-21 at 13:03There was a bug in the stable version. Please use the latest preview for now until the next stable version >= 2.9 is released.
UPDATE: The stable version >= 2.9 is released, see https://tortoisegit.org/download/
QUESTION
How do you set the default dates range in TortoiseGit log dialog?
In the Filtering Log Messages of the TortoiseGit Manual it is mentioned that:
A default limitation for From can be configured in the settings dialog on the Dialogs 1 page (cf. the section called “TortoiseGit Dialog Settings”).
But on TortoiseGit 2.4.0.2, in that dialog I cannot find such a possibility.
...ANSWER
Answered 2019-Oct-12 at 18:31As described in the manual (cf. https://tortoisegit.org/docs/tortoisegit/tgit-dug-settings.html#tgit-dug-settings-dialogs):
It's only possible to configure the From
value not the To
one.
QUESTION
I am having a problem passing parameters to an external bash script file from git aliases. Currently, I have my bash script file in the same directory as my .gitconfig. I plan on moving all my complex !f() { }
aliases in there to avoid battling all the escaping and no commenting.
So my script file is named .gitconfig.kat.aliases.script and it looks something like this:
...ANSWER
Answered 2019-Mar-14 at 12:15$ bash -c 'echo $@' 1 2 3
2 3
$ bash -c 'echo $0 $@' 1 2 3
1 2 3
QUESTION
I want to download and verify TortoiseGit-2.8.0.0-64bit.msi
I use gnupg2 (in Cygwin)
The TortoiseGit download page provides these files:
...ANSWER
Answered 2019-Mar-13 at 15:11The key is available here: https://download.tortoisegit.org/keys.
As the MSI files are also signed using AuthentiCode, there is no real need for the GPG signatures for end users. - The GPG signatures are used by the auto-updater in order to verify the integrity of the update packages (despite the fact that those are also downloaded using HTTPs).
If you need another trust root, you can call TortoiseGitProc.exe /command:pgpfp
in order to display the GPG fingerprint.
QUESTION
My question is strictly related to this one: I have Tortoise Git and I need to temporary switch to a previous state where I placed a tag, then make a modification of that version and after rollback to the current state, losing the modification made (so I want to go back to the initial state).
Since I cannot mess up with the code, is the procedure explained in the related question sufficient? Should I select the option "Create a new branch" when I switch back or not? If I don't, later on can I just use:
- Explorer -> Switch/Checkout
- Select branch
- master OK
to come back to the initial state?
EDIT For instance what happen if in this window I switch to a certain tag without selecting the option to create a new branch? Would I be able to switch to the master initial state again?
...ANSWER
Answered 2018-Sep-10 at 15:36In terms of direct commands, what you want to do here is to checkout a previous commit in the detached HEAD state. Then, you want to maybe poke around there, test some things, and finally return to your original state. You may do this in Tortoise Git by doing TortoiseGit → Switch/Checkout
. Check the Tag
radio button, and enter the name of the tag. By clicking OK
, you will checkout that tag. Once you have finished doing your work, you may return to where you were by again checking out your current branch.
By the way, in terms of raw Git commands, you would do this:
QUESTION
I have a folder with files in my woring directory, not yet under version control. If I right click on the folder and go to TortoiseGit -> Add I get the message:
There is nothing to add. All the files and folders are either under version control, have been ignored or the global ignore configuration setting.
When I go into the folder and select the individual files I can add them. And if I start a command line and use git add --all
it does what I want TortoiseGit to do and adds recursively.
According to the TortoiseGit Manual it should be able to do this:
Many Adds: You can also use the Add command on folders. In that case, the add dialog will show you all unversioned files inside that versioned folder. This helps if you have many new files and need to add them all at once.
What am I missing?
...ANSWER
Answered 2017-Jun-26 at 08:16The problem was a bug in TortoiseGit/Cygwin to do with the following line (executed in the debug log):
"C:\path\to\git.exe" ls-files --exclude-standard --full-name --others -z -- "dir\subdir"
The command outputs a list of file locations relative to the woking copy home not yet in the repo and the -- "dir\subdir" searches this list for files in the current dir\subdir.
Cygwin being cygwin outputs the files with a forward slash "dir/subdir" so the search returns no files.
This bug only appears when the add is attempted in the 2nd level of the working copy (top level and 1 level down work as they have no "\" in the search).
EDIT: the answer from MrTux is correct as the CygwinHack value was false
QUESTION
I just wrote a script to release a build of one of the products I'm working on. The script does the job, but I don't really like the code itself, looks like spaghetti code and callback hell combined.
Is there a cleaner way to do this? I'd like to be able to run commands in series, log the outputs (stdout.on('data')
) and when the task is finished. (easier for further debug and when waiting for the task to be done, reassuring to know what's happening on the background)
Maybe using Promises would help clean the mess a bit, but still, I feel like there should be a cleaner way to deal with multiple commands.
Some explanation about what the code does:
- Create a tag with the commit you want and the tag version you want, i.e:
git tag 1.2.5
. - Build the release file with
gulp build
. - Create a folder
doc/
. - Convert
doc/doc_reader.odt
todoc//documentation.pdf
. (Open it and export as PDF) - Copy
build/reader.js
anddoc/changelog.txt
in the created folder. - Zip the 3 files.
- Commit everything with commit message:
Release 1.2.11
(for example) - Push.
- Create a new release on GitHub using the commit you just pushed and the same tag.
Here is the code, as an example. (ES5, Node 4.6.0+)
...ANSWER
Answered 2017-Apr-03 at 15:02There is an mz
module that can be very helpful here. See:
This, combined with async
/await
will allow you to write code like this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install TGit
Install TortoiseGit
Install MSysGit
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page