55 questions
-3
votes
2
answers
326
views
How to see stashes in VS Code?
I'm on Windows, I'm using VS Code version 1.107.1
I have Git lens extension installed.
I right click on Source Control and there is no Stash panel available for displaying.
This is a new machine, and ...
1
vote
0
answers
79
views
How to require a password prompt for every Git push in VS Code with GitLens?
I want Git (or GitHub via VS Code) to prompt me for authentication every time I push changes to a repository, instead of storing my credentials or using a credential manager.
I'm using GitHub.
I push ...
0
votes
0
answers
123
views
How to get rid of the Gitlens commit graph in the terminal in VS Code?
This seems similar How to get rid of GitLens+ Pro screen in VS Code?, but not quite the same. With the Gitlens extension installed in VS Code, when I open a terminal by pressing Cmd+J on my Mac, I see ...
0
votes
2
answers
281
views
How to display author + date in specific format?
I want to see in each line which person write it, and the date. I downloaded the gitlens extension.
I just want you, 24-03-2025 format. This is what I tried and no luck:
${author} ${date}
${author} • ...
0
votes
0
answers
46
views
display and showing dates on all code lines using gitlens
How to display date on all code lines?
I can only display on one line of code.
I've explored all the settings on gitlens, but I don't dare to experiment too far because I'm afraid there's a problem ...
0
votes
3
answers
2k
views
The VS Code source control "branches" UI disappeared
After updating to the latest version of VSCode(1.95 I believe),
The "branches" tag nologer appeared in source control panel.
(Which means you could not view/swich your local branches with ...
2
votes
0
answers
126
views
VS Code GitLens "GitHub request timed out"
I recently started to get this error when starting my VS Code from GitLens:
"GitHub request timed out."
"Source - GitLens - Git Supercharged"
VSCode version: Version: 1.94.2 (...
0
votes
1
answer
538
views
How to disable Commit Graph tooltip (popup) in VS Code GitLens extension?
Every time I hover over a commit on the Commit Graph of VS Code's GitLens extension, a huge and annoying popup shows up. Is there a way to disable this? I cannot see anything underneath, cannot even ...
1
vote
0
answers
124
views
Is there a button for merging branches in GitLens for VS Code?
I am editing a repository in VS Code (v1.89.1) on Windows 11, using the GitLens extension (v15.0.4)
Currently the git repository in question is purely local and not published anywhere.
I want to merge ...
8
votes
1
answer
1k
views
How to disable the hidden lines feature in gitlens/vscode?
This feature is very annoying to me when I am going through the file history and looking for a keyword throughout.
Is there a way to disable this ?
Sorry, I can't find the correct keywords / settings ...
0
votes
1
answer
118
views
Is there a way to compare file history with the current HEAD using GitLens?
I am using GitLens file history in VSCode to view older file commits. When I click on a file, I get a comparison between the commit I clicked and the immediate predecessor commit. Whilst this is ...
-1
votes
1
answer
489
views
git lens supercharged extension vscode, how to roll back to previous commit in branch main
enter image description here
This was the last commit I did from the branch main, I did right click, it's showing me my options, maybe I can retrieve it, but I don' know which option to click for that....
2
votes
0
answers
628
views
Git Lens Search by authors and search string
I am trying to search text in files committed by multiple users using UI in vscode. I tried using GitLens feature search commits but cannot search by multiple users. I can do the same in command line ...
2
votes
0
answers
848
views
How to access GitLens+ features for a public fork?
I created a public fork of a public repository on GitHub. After cloning via SSH I can't use the Commit Graph feature of the GitLens VSCode plugin. It says:
A trial or paid plan is required to use ...
4
votes
2
answers
2k
views
How to set vscode/gitlens as the default editor for git in wsl
Problem
When I start an interactive rebase from a windows cmd, the interactive gitlens rebase window pops up on vscode. When I do the same from wsl, the plain txt rebase file shows up on vscode.
Is ...
0
votes
0
answers
137
views
VS Code GitLens path using or single backslashes
Ive reinstalled my PC (Windows) and now the following functionality that worked completely fine doesnt anymore:
e.g. Deleting a branch with the gitlens plugin:
have a local git branch in the ...
2
votes
3
answers
4k
views
How to get Gitlens to display inline blame annotations again?
I am using Visual Studio Code
Version: 1.77.0:
Commit: 7f329fe6c66b0f86ae1574c2911b681ad5a45d63
Date: 2023-03-29T10:05:35.165Z
Electron: 19.1.11
Chromium: 102.0.5005.196
Node.js: 16.14.2
V8: 10.2.154....
0
votes
0
answers
78
views
Gitlens hiding the current state of my file?
I was searching for some code in VSCode in a branch that another developer had made, but couldn't find it even though I have their branch and haven't made any changes.
Then I noticed there was a ...
1
vote
1
answer
3k
views
Is there a way to view my repository's remotes' URLs in VS Code?
In VS Code there is a source control panel. VS Code picks up and initializes the repository correctly when I open the root project folder (the directory that has the .git folder).
However, how do I ...
1
vote
0
answers
531
views
Using GitLens in VSCode, how do I selectively reintroduce stashed changes
I'm using VSCode, I tried some changes that break the app.
I stashed the changes and the app works OK. Now I want to reintroduce the changes one by one to get to the problem.
When I open the stash in ...
1
vote
0
answers
48
views
Can Gitlens ignore lines in the diff that starts with specific characters?
I am using GitLens in Visual Studio Code. I need that when GitLens does the diff, it ignores certain strings that start with certain characters. In this specific case, the characters I want to ignore ...
1
vote
1
answer
385
views
How to add background text with a VS Code extension like GitLens?
I'm trying to add background text for an extension I'm creating like how GitLens does. Is there an API, or function I can use to push text onto the editor?
1
vote
2
answers
2k
views
Push to remote branch no longer working in VS Code with GitLens
For the past few days, I've been trying to push a branch to a private repo from VS Code with the GitLens extension, only to have it fail with the following cryptic message:
[2022-12-02 21:00:41.637]
...
5
votes
1
answer
6k
views
How to copy a URL of code line in VSCode?
It happens often when I work in VSCode and I need to send a code line URL from a repo to a colleague.
There is no native support for this in VSCode. There is a capability that's enabled by Atlassian ...
1
vote
2
answers
3k
views
How to hide the name of the last person edited the line? [duplicate]
I want to hide the details next to the code.
I tried to hide it from the settings, but I couldn't find the option that enables me to hide it.
2
votes
0
answers
193
views
How to disable ad from Gitlens and access functionality?
I've been a happy user of Gitlens for some time. But suddenly the activity button does not activate the usual functionality, instead it activates an ad.
How can I get rid of this add and restore the ...
54
votes
7
answers
58k
views
How do I restore the stashes menu in Visual Studio Codes Source Control panel?
I can't find the Stashes (nor REMOTES, BRANCHES, FILE HISTORY) menu in the Source Control (the one you open up with Ctrl-Shift-U) tool bar.
This is how my Visual Studio Code looks like:
And this is a ...
1
vote
2
answers
540
views
VSCode GitLens extension: remove "ago" from dates
Using VSCode's GitLens extension, is it possible to show the relative time since a change without writing "ago"? Currently if a line in a file was changed 4 years ago, GitLens will write out ...
26
votes
8
answers
27k
views
GitLens in VS Code: no inline blame info anymore
After several updates, and installing other extensions like Error Lens, I noticed that GitLens stopped working. There is no blame information displayed at the line ends anymore. Error Lens continues ...
2
votes
1
answer
2k
views
How can I revert certain lines from old commit?
Let's say that I have 2 files:
App.js
Home.js
They are already tracked and exist in first commit. And I add a new feature to App.js on second commit which is maybe a new function and have more ...
0
votes
1
answer
1k
views
How to sign in to Azure Repos in VSCode GitLens
I've used VSCode Gitlens for git actions for repositories hosted on Github. But now, my projects are hosted on Azure Repos, and I cannot sign in to Gitlens as it always shows the "Sign in with ...
1
vote
1
answer
497
views
Git Lens for VS Code icons
Anyone know what the green + and orange horizontal rectangle and vertical line icons are?
2
votes
1
answer
7k
views
VS Code Git Lens: Does "Sync changes" sync or push?
When I have committed all my changes, git lens in VS Code offers me to "sync changes". When I hover over the button however, it says "push commits to remote repository"
Aren't ...
27
votes
7
answers
28k
views
How to get rid of GitLens+ Pro screen in VS Code?
I installed GitLens in VS Code. Then it asked if I wanted to try the GitLens+ features. I clicked "Yes". Now I am stuck at the welcome screen and can't get past it. Any ideas how to get rid ...
7
votes
1
answer
4k
views
Is there a way to see a diff of the current file in VS Code?
I'm on a branch, and I'd like to see the diff between the currently-open file and the file's main version. I know I can do GitLens: Compare Working Tree with..., but then I have to find the current ...
0
votes
1
answer
925
views
Disable views on GitLens in VScode
GitLens is a wonderful extension for working with git on VScode.
However, most of the "views" are just there in your face. For example, Tags, Remotes view.
Is there a way to disable selected ...
2
votes
0
answers
2k
views
Can GitLens do a selected file checkout - cherry picking selected FILES to another commit?
My project failed to compile, so I unsuccessfully tried a variety of solutions over another 8 commits - including some changes I want to preserve.
So my master has some files from a variety of commits ...
-3
votes
2
answers
3k
views
How to remove deleted file from git-lens VSCode
How can I removed these deleted files from git lens using vs code
3
votes
1
answer
4k
views
GitLens unable to pull push in Visual Studio Code
I created a simple repository, edited an index.html file and published the changes to GitHub through
Visual Studio Code GitLens. It works fine.
On a subsequent commit, it throws an error:
> git ...
2
votes
1
answer
2k
views
VSCODE Gitlens Undo Merge Manually
While merging manually using vscode-gitlens command --no-ff, I just notice i'm trying to merge SIT to my file and now it stucks at this stage where I cant undo the changes. Can anyone provide any ...
1
vote
2
answers
92
views
Is there an option for storing "master code" using git?
While using git, we all have our code in our own repository, pushing to and pulling from a bare repository.
If I need parts of the newest code in a specific folder for later use by an automated script,...
1
vote
0
answers
409
views
VSCode Gitlens Difftool show error with red underline but code is working well
I just install GitLens on my VSCode. When I use difftool with old version, difftool show error with red underline. But code hasn't any problem. It work well
Can any help me solve this problem. My ...
1
vote
0
answers
2k
views
VSCode GitLens Extention stashes show untracked files
When looking at GitLens stashes, it shows a bunch of untracked files that looks as if they were included in the stash. However, only one file was actually stashed which is what shows when I run git ...
2
votes
2
answers
1k
views
Gitlens hangs when fetching remote repository via WSL
I'm using Gitlens with VS Code via Git installed in WSL2. (I'm using Amazon Linux 2 as my distro). Performing a fetch in either the Remotes or Repositories view in Gitlens causes it to hang. It puts ...
5
votes
1
answer
3k
views
In VSCode, when use git compare to previous versions, can I revert one changes back?
Here is the screenshot of what I mean. As I am comparing my working file with previous commit, there are tons of changes. I can navigate to each of the changes by using up/under arrow in top-right ...
7
votes
2
answers
4k
views
GITLens switch to commit made my newer commits disappear
very scary situation right now: I have used the GitLens extension of VSCode to jump back to an older commit. I wanted to checkout the commit, located it in the COMMITS sidebar, right clicked and ...
4
votes
1
answer
704
views
Is there a way to suggest edits to a PR?
Is there a commonly used way to add small edits as code suggestions that the author of a PR can either accept or decline? Something similar to the way a Google Doc allows you to "Suggest Edits&...
4
votes
3
answers
3k
views
Vscode extention GitLens, How can turn off the feature as shown in the figure below? [duplicate]
How can turn off the feature as shown in the figure below
15
votes
4
answers
21k
views
How to enable VSCode Interactive Editor
Im using Vscode and Gitlens. I want to be able to do an interactive rebase. I have core.editor=code --wait set. But when I try and run a rebase I get the text-based editor instead, like so:
Any ideas?...
7
votes
1
answer
1k
views
Gitlens causing line break before code block [duplicate]
I recently started using the Gitlens vscode extension, and it offers alot of great features. However, it seems to be creating an empty line above code blocks sometimes, like this:
As you can see, ...