153,738 questions
-4
votes
1
answer
67
views
Force-added file doesn't show in status [closed]
There is a picture saved in a pdf that I would like to add to my git repository.
It is named pictures/number_products_per_bitsize_1.pdf.
ls pictures
ibraries-single-thread-square-review.pdf ...
2
votes
0
answers
60
views
How to skip binary file types when cloning a Perforce repository with git-p4
I have a huge Perforce repository that contains many large binary assets in addition to code.
I want to use git-p4 to "convert" this repository's history to Git, so I can use Git-specific ...
1
vote
1
answer
57
views
Get default remote for git switch
Let's say, for example, I have 3 remotes defined in my .git/config in the following order:
remote3
remote1
remote2
Also, checkout.defaultRemote may or may not be set.
Then, there is a branch ...
-3
votes
0
answers
45
views
How to open specific git committed file in VS Code? [closed]
Like how Git Graph allows you to open committed file to show comparisons
I want to make a VS Code extension that allows users to open committed files like that. What VS Code API should I use?
Input:
...
0
votes
1
answer
68
views
Git .lock file not found
I am trying to do a git fetch (or any other Git command) and I get the following error:
fatal: Unable to create '/path/to/repo/.git/refs/remotes/origin/main.lock': File exists.
There are no .lock ...
Advice
1
vote
7
replies
155
views
Best sites to gather cheat-sheets/notes
I am someone who likes to study via online notes and documentation, but I would really like it if there were a website with a collection of short notes and/or cheat sheets so that I can revise the ...
Best practices
1
vote
1
replies
32
views
Multi repository synchronisation for deployment
For a crew project I have 2 gitlab repositories (backend and front-end) and I'd like to improve my CICD. As of now, when I merge a PR, it deploys on a ""development environment"" ...
Tooling
0
votes
1
replies
40
views
Development / Deployment workflow recomendations
I'm looking for Process improvement recommendations.
Today, we have a dozen lab fixtures for setting up hardware.
Most hardware setup is done by python scripts, we have a very small team with no real ...
-5
votes
0
answers
50
views
IntelliJ marks files as modified when I add tabs/spaces — how to stop this? [closed]
In IntelliJ IDEA, whenever I press Tab or add spaces, the file is marked as modified even though nothing meaningful has changed. This creates noisy diffs and clutters my GitLab merge requests with ...
0
votes
2
answers
81
views
Python exec and Git's worktree lifecycle
I'm encountering a peculiar issue when using Python's exec function within scripts that are run across different Git worktrees. Specifically, I've observed that the behavior of exec (and by extension, ...
-2
votes
0
answers
33
views
Issue with trying to do git clone with TortoiseGit [closed]
I'm seeing a strange issue. I want to get the latest files (all folders and files) from a github repository with TortoiseGit using Git Clone. TortoiseGit would download all the files except I found ...
Best practices
0
votes
0
replies
57
views
git repo structure for a project with multiple variants?
We are developing a core framework, with project specific variants. To make matter interesting, some parts are classified, so we develop on two company LANs, one less sensitive and one secret.
So, any ...
Advice
0
votes
3
replies
52
views
Azure Devops GIT Merge Using Visual Studio
I have a branch that I want to merge into the master and I'm not sure why I'm not seeing a clear path to do so. Using Visual Studio 2019, I can see that the project has the master and one branch, ...
Advice
4
votes
4
replies
62
views
Is there a way to remove the keep/undo feature from copilot chat?
I am in the habit of constantly comitting in Git. That's my keep/undo. I am starting to use GitHub Copilot Chat in Visual Studio. It also has Keep/Undo. But I never want to undo anything there. That's ...
-4
votes
0
answers
42
views
git svn fetch stuck [closed]
i am trying to migrate complete svn repo to git. SVN repo has 30k+ revisions, while at 9844 revision "git svn fetch" command got stuck, does not update any thing on console.
No error is ...