153,746 questions
-1
votes
0
answers
25
views
Why is my CSS not applying even though the file is linked properly? [duplicate]
I'm trying to log in to my GitHub account from the terminal using my GitHub username and password,
but GitHub no longer accepts account passwords.
I generated a Personal Access Token (PAT), but when I ...
-4
votes
1
answer
71
views
Is the source code representation in the Go Programming Language the same as in Git?
git(1) uses one representation when storing source code (not binary) by default which IIRC is utf-8 (no working-tree-encoding). Is this the same default as in Go?
I tried comparing to Git but have ...
0
votes
0
answers
47
views
Git error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500
When running git push origin --force on LLVM with full depth,
Enumerating objects: 6521470, done.
Counting objects: 100% (6521470/6521470), done.
Delta compression using up to 12 threads
Compressing ...
-7
votes
0
answers
61
views
Recover a vanished folder after cancelling "git clone" [closed]
I've been working on some data evaluation using VS Code and Jupyter today. I saved everything, then closed VS Code. After that I canceled a "git clone" command using Ctrl+C that was there ...
-4
votes
1
answer
49
views
How to I resolve fast-forwarding error between local Git and GitHub?
I committed a project to my local Git repository and pushed it to GitHub. I then amended my local commit and tried to push the amended commit to GitHub. That gave me an error:
hint: Updates were ...
Advice
0
votes
2
replies
49
views
Commit old "hobby projects" code stored in local drives to git repository
I have been developing code for hobby projects across ESP8266, Arduino UNO, Python etc. for past 5+ years.
All this code is stored in either local drives of my computer, old hard disks or sent to ...
0
votes
1
answer
57
views
Create gitlab merge request for project A while in project B
Let's say you have the following setup in gitlab:
Gitlab Group Developments, of which there is a Subgroup Subgroup, which in turn contains Template project X which provides a general structure for ...
Best practices
0
votes
2
replies
49
views
WinUI3 Packaged App Signing Keys with Git
I'm just wondering what the best way is to deal with MSIX signing keys in a git repo.
My project keeps a hash of the signing key in the project files, which means anyone who clones the repository will ...
2
votes
1
answer
61
views
In Windows Git Sparse Checkout does not work as expected and downloads unwanted files
I have a folder structure in a Git Repo like the following:
.
└── top_level/
├── invalid_file_names/
│ ├── <?>.txt
│ └── <<>>?.txt
└── valid_files/
├── ...
1
vote
1
answer
81
views
SVN to GIT conversion: Mismatched email address
I have been tasked with moving various projects from SVN to GIT. This is not code that I have ever worked on so my name is not in the git log. Some code has moved to GIT no problem but other projects ...
-1
votes
0
answers
53
views
Why am I getting fatal: Unable to create '.git/index.lock': File exists even when no Git process is running? [duplicate]
I get this error:
fatal: Unable to create 'C:/Users/HP/.git/index.lock': File exists
There is no other Git process running.
Is it safe to delete the index.lock file manually?
Advice
0
votes
1
replies
63
views
set signing date during git commit
git rebase --committer-date-is-author-date --interactive remote/branch preserves (or adjusts) the CommitDate: value. Both CommitDate: and AuthorDate: could also be adjusted with the GIT_COMMITTER_DATE ...
Best practices
1
vote
3
replies
61
views
How to make one commit of several changes on GitHub when working via the GUI and not using command line
First of all, yes, I have read all topics here related to my question. But other questions are based on changes made locally and using command line.
I'm asking about this specific situation: working ...
Advice
0
votes
2
replies
43
views
Git: ignore local difference but keep in repo?
For testing on a VM, I made a different favicon file so I can immediately tell in the browser which tab is the VM vs. the public server. But of course git considers it an uncommitted change - I'd like ...
Best practices
1
vote
2
replies
58
views
Overleaf using Git backend with online editors
I prefer using the Git backend to Overleaf to work locally on my own computer and push periodically.
I've found that it is difficult to work with other online editors when we are editing at the same ...
-4
votes
1
answer
61
views
Vercel live site not updating UI changes after successful GitHub push and redeploy [closed]
I am building a Habit Tracker application using React (Vite) and Tailwind CSS, deployed on Vercel.
The Problem: I recently updated a component (HabitList.tsx) to fix a UI issue where an input field ...
Best practices
4
votes
3
replies
62
views
How does one correctly version a Wordpress project?
I have been wondering how to version Wordpress projects correctly.
Versioning the entire Wordpress directory? I'd be versionning a lot of code that's not mine (Wordpress core, theme(s), plugins...) ...
-1
votes
1
answer
70
views
How to systematically untrack build files from a git repository? [closed]
Branch x in my git repository contains the undesired build files. It happened because I do not separate build directory from the source code and I git add-ed the build files. The main branch is in a ...
1
vote
1
answer
112
views
Running a tool with uvx from a private repo using an access token
I want to frequently test a Python application I'm developing with uv, which I publish to a private repository on a GitLab instance. I've generated an access token with read access to the repo and I ...
2
votes
1
answer
47
views
How do I re-use existing submodule checkouts when creating a worktree in Git?
I have a project where I have checked out the main branch, which has 2 submodules: vendor/foo and vendor/bar. If I create a worktree for a feature branch with git worktree add ../feature feature, this ...
4
votes
3
answers
105
views
Merging branch based off another branch that since has been merged (with squash and delete)
I am running into some weird merge conflict issues even though I am the only one working on the repository and have only made linear commits.
I have these branches:
main
feature-A (based off of main)
...
1
vote
2
answers
64
views
git is showing unmerged paths: both modified
I have a visual studio project which uses git. I don't normally use VS for my work - this is a side project - I normally work from the command line and I'm a git novice anyway. I must've done ...
-4
votes
1
answer
83
views
Uncommitted Files Lost After git stash and git stash pop
I had new files I had not committed before running git stash thinking they would be saved along with the modified files but they were gone after I returned to the branch and did a stash pop. Are they ...
0
votes
0
answers
43
views
How to add an existing Angular project into the same Git repo as my ASP.NET Core Web API (VS + VS Code setup)?
I am building a full-stack project where:
Backend: ASP.NET Core Web API (created in Visual Studio 2022)
Frontend: Angular project (created separately in VS Code)
Git: I initialized Git from Visual ...
Best practices
0
votes
3
replies
48
views
I want to make "HTTPS proxy cache server" with nginx that controls large size of git source
i'm newbie in nginx and proxy server.
We have a problem about googlesource 429 Error, caused by many requests
and because of bandwidth, we took a long time to get googlesource.
We reviewed to make ...
0
votes
1
answer
45
views
Is the hash for a Git submodule associated with the section key or with the path?
I'm doing something with git-filter-repo that is like the convert-svnexternals script here:
https://github.com/newren/git-filter-repo/blob/main/contrib/filter-repo-demos/convert-svnexternals
In that ...
1
vote
1
answer
96
views
Why does git fetch origin pause / do nothing / not complete
pre-existing questions are asking about commands that exit with status code 0 -- my command does not exit.
Here is the super verbose output obtained via
GIT_TRACE=true \
GIT_CURL_VERBOSE=true \
...
Advice
0
votes
8
replies
122
views
Why does Git not support nested branching, and how can I design a versioning system that does?
I’m building a file versioning system for my product ThinkNCollab, which includes both a Task Management System and an advanced File Versioning System.
While designing the CLI for the versioning ...
-2
votes
2
answers
104
views
How to mark commit for upcoming release branch merge?
There is following Git branch setup with long living release branches:
develop branch
current release branch based on develop somewhen in the past. Release is very soon.
a minor release shall be ...
1
vote
4
answers
98
views
How to get pull requests that were never merged on the original project into forked project on Github
On Github there is a promising repository that hasn't been maintained for years. So there are pull requests from other users that have been ignored.
I have forked the repo. Is there a way to get the ...
Best practices
0
votes
4
replies
92
views
How can I keep my main branch clean while still getting daily GitHub contribution activity?
The problem is that committing to the main branch every day makes the history messy, but commits made in other branches do not appear in the GitHub contribution graph (the green boxes).
What can I do ...
Advice
0
votes
3
replies
76
views
Show commited (but not pushed) changes in similar format to git status
I need to see where I have committed work, but not yet pushed it.
I would really prefer something similar to git status which shows a readable summary.
I don't want to be doing git log, looking at ...
-6
votes
0
answers
79
views
how to make git recognize the emoji unicode not changed?
the content is generated by unplugin-vue-router, nothing changed but git says it changed. if submit, it will report nothing changed
original content is \u203C\uFE0F, but when vite build run, it will ...
Advice
1
vote
3
replies
90
views
How to make `git branch --show-current` work on GitLab?
There are several questions on stack overflow asking how to get the current branch name on GitLab. The interwebz are full of countless variations of that same question. The answer that is always ...
1
vote
1
answer
73
views
Git: How to remove In Linux correctly and permanently each ^M generated in Windows in .adoc files?
In Windows 11 (even in 10) was written a lot of documentation through a hierarchy of .adoc files and git was used for track controls. Well the project directory was shared to other users where they ...
1
vote
1
answer
115
views
GitHub and squash merge being overridden when PR is approved
I was having a look at the history of my main branch in Git today, and I noticed that, despite the fact that I've configured branch protection of the main branch, and only allowed merging squash ...
Best practices
0
votes
6
replies
56
views
Need a Opinion on the workflow from Feature dev to staging test to prod run
the title is somewhat difficult i try to explain what i want the input from you all.
My current practice from a feature/bug development towards the codes journey to the production is following
I get ...
0
votes
0
answers
56
views
DevSecOps pipeline — scans run on test branch, but devs keep pushing to dev/preprod/prod, how to ensure new code is scanned before production?
I’m an intern working in DevSecOps. Our repo uses branches: test, dev, preprod, prod. I’ve set up scans (SAST, container scan , DAST ) triggered from the test branch.
But the dev team often pushes ...
0
votes
0
answers
95
views
Git: fatal repository not found
Our company migrated our source code from a local gittea server to Github.com. I have orchestrated the entire migration with 99% succes. I made manuals, scripts and I moved the repositories.
We have ...
2
votes
1
answer
71
views
How to compare the changes in two branches?
Say I have four commits A, B, C and D, with A being an ancestor of B and C being an ancestor of D. I now want to verify that the changes from A to B are the same as the changes from C to D (or show ...
Best practices
1
vote
3
replies
81
views
How to update git submodule with latest commit automatically in remote
I have a project named sample which have 2 submodules sampleA and sampleB. I also have another git repo named Example which also refers to same submodule sampleA and sampleB. When I change something ...
2
votes
1
answer
85
views
How does git read-tree behave in a single-tree merge, since it doesn’t seem to fully follow the documentation?
I created the following test repository (you can copy the commands):
$ git init repo && cd repo
$ touch file
$ git add . && git commit -m "Initial commit"
[main (root-commit) ...
-2
votes
1
answer
85
views
checking out a branch in git and staying as detached head after source install.sh [closed]
I need to switch from the master branch to branch_a, and this branch_a needs to be a detached head in deps/tests. I am doing this by
git fetch origin
git checkout origin/branch_a
The problem is that ...
2
votes
1
answer
59
views
Stop tracking files that match the patterns in a newly added .gitignore file
When you inherit a code base where gitignore has not been used then the first thing you want to do is add a standard gitignore file like this one Standard Visual Studio gitignore file for example. But ...
0
votes
1
answer
70
views
how to make git diff / wdiff / ... to do word diff and interpret changes on different adjacent lines always individually?
if you change this file:
div
{
max-width: 50%;
max-height: 50%;
}
into this:
div
{
max-width: 100%;
}
git diff --word-diff will print:
div
{
max-...
0
votes
1
answer
53
views
Does fs.watch in Node.js listen to changes in hidden folders like .git?
If I watch a directory that has a .git inside of it and run fs.watch, does that listen to changes within .git folder?
For example if I use:
fs.watch(dir, { recursive: true }
1
vote
0
answers
90
views
Using `git lfs` with SSH on GitHub gets stuck at `git-lfs-transfer`
I noticed that git lfs operations (push or pull but especially push) with GitHub keep getting stuck running git-lfs-transfer. This is slowing down all of my git operations which call git lfs via hooks....
-3
votes
0
answers
39
views
Remove Git log history [duplicate]
Issue:
Some code containing a Client ID and Client Secret was accidentally pushed to the integration branch. Although those changes have now been reverted, the issue is that multiple branches had ...
-2
votes
1
answer
79
views
CMake configure_file() permissions issue when run by multiple users
When trying to rebuild a CMake project as a different Linux user, it generates Operation not permitted despite having read and write access through group permissions. The only way to solve it is to ...
Advice
1
vote
3
replies
77
views
Is there a way to use a custom diff algorithm in Git?
One really common issue I encounter is that Git is purely text-based, and doesn't know anything about the language of the file it's tracking. Most of my time spent resolving merge conflicts is fixing ...