3,282 questions
0
votes
0
answers
58
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
36
views
Git commit signing fails with "gpg: skipped ... No secret key" even after generating a key [duplicate]
I'm trying to set up Git to sign my commits using GPG on Windows, but I keep getting this error when committing:
gpg: skipped "CD01EE27925BFE93": No secret key
gpg: signing failed: No secret ...
-2
votes
3
answers
182
views
How can I work on multiple git branches at once?
Clarification: I'm asking about working on multiple branches in the same worktree. (I know how to work on multiple branches in separate worktrees, but that's not the question here.)
Suppose I'm ...
0
votes
0
answers
29
views
Installing github branch using composer [duplicate]
Is there a general / standard approach to installing a github branch when the "parent" is installed using composer?
To hopefully clarify: I would like to install this branch (PHP Dropbox SDK)...
0
votes
0
answers
33
views
How to handle semantic versioning when cloud and on-prem branches diverge?
I'm working on a project that maintains two active release branches:
10.0.x → for on-prem deployments
10.1.x → for cloud deployments
We have an automated system that merges changes from the on-prem ...
-1
votes
2
answers
140
views
git delete tags associated with removed branches
On GIT After I removed a branch there are tags still exists.
I used this command to delete local and then remote branch "brnch"
git branch -D "brnch"
git push origin --delete "...
6
votes
1
answer
95
views
git branch --create branchname works fine, but is not documented anywhere
git branch branchname creates new branch "branchname", we know that.
However,
git branch --create branchname also creates new branch "branchname":
yet the latter is not documented ...
2
votes
2
answers
136
views
Get only git branches which match / don't match the fetch specs from `.git/config`, and delete non-matching ones
Suppose I have a .git/config as follows:
[remote "origin"]
url = [email protected]:some/repo.git
fetch = +refs/heads/main:refs/remotes/origin/main
fetch = +refs/heads/...
0
votes
0
answers
78
views
How to resolve a merge conflict using command line or github [duplicate]
I submitted a few files, all to separate branches and made a PR. But my PRs were closed with unmerged commits because I had to fix some issues with my code. I resubmitted after and made new PRs but ...
-1
votes
4
answers
141
views
Sort branches but show current branch first
Can I sort branches by -committerdate, but also always show the current branch first?
git config --global branch.sort -committerdate
Shows more recently committed-on branches ahead of the current ...
0
votes
0
answers
59
views
How merge everything into origin/master and get rid of origin/main?
I have a git repo backed by a BitBucket instance. In this repo I appear to have three branches:
main (my local branch I guess)
origin/master
origin/main
The master naming scheme seems to be the ...
1
vote
2
answers
156
views
How can I create a branch in my fork based off a branch in a different fork (of the same master)?
I have my own fork I’ve been working on for awhile:
https://github.com/udance4ever/batocera.linux/
I verified the work done in this branch of a fellow developer’s fork is something I wish to build ...
1
vote
2
answers
197
views
Running Multiple Application Instances on Different Branches in IntelliJ - Potential Class Loading Issues?
I'm trying to understand how IntelliJ handles class loading when running multiple instances of a Java application on different branches.
When you run an application directly from the IDE (like ...
2
votes
2
answers
2k
views
Why can't my github app bypass branch protection
I want to create a github app in my organization that will allow me to create an automatic versioning commit directly on the main branch after every pull request is merged to main branch.
I have a ...
-1
votes
1
answer
88
views
Will deleting specific commits from a branch affect the original branch it was created from?
I have a branch A that was created from another branch B. Some specific commits from branch B are also present in branch A. I’m considering deleting those commits from branch A, but I’m concerned ...