153,751 questions
Best practices
1
vote
0
replies
25
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 ...
Best practices
4
votes
1
replies
39
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
vote
0
answers
70
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 ...
4
votes
2
answers
84
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)
...
-4
votes
1
answer
77
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 ...
Best practices
0
votes
3
replies
44
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 ...
1
vote
1
answer
92
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 \
...
-1
votes
0
answers
48
views
PHP 8 / MAMP: Restored project gives Internal Server Error and php_mysqli.dll warnings after git pull [closed]
I'm working on a PHP project on MAMP (Windows, PHP 8.3). Everything was working fine until I did a git pull. After restoring some files from an older commit using git checkout, my project now gives a ...
1
vote
4
answers
89
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 ...
Advice
0
votes
3
replies
70
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
74
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 ...
1
vote
1
answer
70
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 ...
Best practices
0
votes
6
replies
54
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
91
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 ...
Best practices
0
votes
2
replies
69
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
77
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 ...
0
votes
1
answer
69
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-...
1
vote
0
answers
84
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....
-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 ...
2
votes
2
answers
80
views
All files from a forked GitHub Repo are locked (blue padlock) in VS2022 [closed]
So I am having some major issues with Visual Studio 2022 and a GitHub-forked repository. The repository is under my own GitHub account - the same one as on my VS. The problem doesn't seem to come ...
4
votes
1
answer
121
views
Why does git not allow branch names extending existing branch names [duplicate]
I have a git branch "hotfix/foo" that exists on the remote repository.
Now I have created a local one with the name "hotfix/foo/bar". It will be created locally without problems. I ...
0
votes
1
answer
70
views
Is there a command to "accept both changes" and swap the order in VSCode?
I prefer to use the normal text editor (not the merge editor) to resolve merge conflicts in VSCode. Sometimes, I need to accept both changes, but want the new text from the "incoming" change ...
0
votes
1
answer
69
views
How to filter git log by relation of the parent commit?
I want to filter the commits shown by git log --graph, so that the commits included are either reachable only by the first parent (--first-parent) [type A] or which are not reachable, whose first ...
0
votes
0
answers
81
views
Google Git repo tool returns error on status request
I just went through all the prerequisities to correctly install the repo tool.
I can execute the following commands:
repo --version.
repo --help.
repo init.
repo sync.
But when I run:
repo status
...
-3
votes
0
answers
28
views
How to add a blank JSON template in GitHub once and ignore it? [duplicate]
I have a JSON file with real data in my repository that is already in .gitignore, so it's not pushed to Github. In Github, this file does not exist. I want to add a blank JSON file to Github so others ...