5,473
questions
0
votes
0
answers
8
views
Restore Git Log Branches in IntelliJ, using mac
Note: Previously to place this question I tried these solutions:
https://stackoverflow.com/a/72490630
https://stackoverflow.com/a/75446910
https://stackoverflow.com/a/78105822
I deleted the .idea ...
1
vote
1
answer
36
views
Jenkins with Git : do git pull in case of branch
I am well aware that when writing a pipeline script for a Jenkins job, good practice is to reclone a repo every time you run the job, however I do find myself desiring to just pull the branch content ...
0
votes
2
answers
54
views
In Azure Dev Ops, given a branch name, how I do I get the corresponding Pull Request (if one exists)
In Azure Dev Ops, given a branch name, how I do I get the corresponding Pull Request (if one exists).
I have a local branch named FooBranch which I've pushed to the remote repo BarRepo which lives in ...
0
votes
0
answers
24
views
How do I manage branches with Tortoise SVN?
In my team we are versioning a project with SVN for the first time and are having problems with syncing our work.
How do I create branches? Currently, after having done "Check-out" I have a ...
-2
votes
1
answer
60
views
Copy all changes from branch to master
I am new to git and I want to copy all changes made in a branch to the master branch.
Is there a way, how to do that, or do I have to use the merge command and compare both branches?
Here is a diagram ...
0
votes
0
answers
39
views
Github desktop doesn't update after removing repo from github
I mistakenly first pushed a sub-branch to GitHub via GitHub Desktop, and that branch became my default branch. After that, I completely deleted the repo from GitHub, but GitHub Desktop still shows ...
0
votes
0
answers
21
views
How to use different connection strings and code depending on development or production branch in .NET framework?
The projects in question are built with .NET framework and use TFVC for version control.
I have two branches for each project, production and development. Every time something like an entity model or ...
0
votes
2
answers
76
views
How to leave current branch [duplicate]
Imagine I am on branch foo, possibly with changes in my working directory. I want to enter detached head state while maintaining the current commit and any changes in the working directory.
The simple ...
1
vote
1
answer
38
views
List git branches between two merges
I have the following git branch structure
features: C D E
/ \ / \ / \
staging : --------------
\ \
release : --A-------B--
I am trying to get a list of all feature ...
0
votes
1
answer
47
views
Azure DevOps Branch Policies
I have a question on branch policies in Azure DevOps, Can we get Pipeline status from Repo B to the branch policies of Repo A? I tried setting it directly and it didn't work as expected and can we ...
2
votes
3
answers
58
views
Does git distinguish between the trunk of master and a merged branch?
Lets suppose I branch of from master (A) and make a commit there (B) and then a commit on master (C) and then merge them (D):
B
/ \
A--C--D master
Now is there something that sets C apart from ...
1
vote
2
answers
24
views
git can't delete remote branch because of distant ref/head
I work on several computers and use a bare repository on HDD to synchronize them. It works fine but I have a problem with a specific remote branch :
I define a temporary branch newDev to ...
1
vote
2
answers
78
views
how to get branch name in Gitlab ci/cd
i have a gitlab ci config like this
simple build :
stage: build
script:
# i want to echo branch name here
rules :
- if: $CI_COMMIT_TAG
i want to echo branch name as a variable
i tried ...
0
votes
1
answer
55
views
how to know if I can contribute to a branch with Azure rest Api?
with Azure Devops REST API, I would like to know if I have the permission to contribute to a specific branch, I found the request to know if I have a permission but it only work on a repos, but not on ...
0
votes
0
answers
37
views
Is it possible to get the latest branch name for a git commit that is in several branches
I'm trying to get the branch name for a commit in git.
I'm using the following command:
git name-rev --name-only --always --exclude=tags* HEAD
but if the commit pointed by HEAD contains several ...
1
vote
1
answer
50
views
Multiple commits are showing while merging hotfix in develop branch - Git
Current Git structure
I created a ticket branch from the develop branch and made some changes. After the release, I merged my ticket branch with both the main and develop branches. Now, I need to ...
0
votes
2
answers
56
views
Optimizations in branching if statements
I'm writing custom execution time formatter function for Nushell, and came across the need to display values when they are needed. First, take a look at the code:
def tooktime_fmt [exect: string] {
...
1
vote
1
answer
32
views
Is there a way to safely but thoroughly forget a git branch after it is deleted?
It is handy to be able to press the tab key and get automated command completion, such as to fill out the remainder of the name of a branch. However, if one types...
git switch de[tab]
... and there ...
0
votes
1
answer
42
views
Select specific branch in checkout OR identify checked-out branch
We are using an ansible setup with roles, templates, central repos, etc for our deployments.
And are working on creating a new deployment pipeline where the source branch of 1 of the involved repos ...
1
vote
0
answers
102
views
Enable a GitHub branch protection rule that can be overridden by force, but only intentionally
I would like to create a GitHub branch-protection rule that I can override, but only intentionally.
Currently, I can protect a branch with a rule (e.g., "Require a pull request before merging&...
0
votes
0
answers
46
views
How to find the worktree path of a branch
Let's say I'm inside a Git repo with worktrees. Given a branch name, how can I find out if this branch is checked out in a worktree, and if so, the path to this worktree?
P.S. this is for a script, I ...
0
votes
0
answers
29
views
Creating Git Tag to a repository
I am checking out 3 repos and out of which 1 repo is from Github and other 2 are from bitbucket.
While creation of Tags, I want to create it only for the one which was checked out from Github, and not ...
0
votes
0
answers
60
views
How to compare files from .war file with a branch
I need to compare a .war file (it's like a compressed file with all file project on it) with a master branch.
I have a script to compare 2 branches, I need to compare a file (or folders btw) with my ...
-1
votes
1
answer
20
views
There is a malfunction in my local repository branch
Yesterday, I encountered a commit conflict while fetching from my upstream. In my limited knowledge, I deleted the file with the commit conflict from my vs code. Now, I tried to fetch from my upstream ...
-1
votes
1
answer
38
views
GIT List all files that have been committed directly to my branch
We have a production branch from which we branch off feature branches.
At certain times we put together a release with all features that are ready for production.
The branches then get merged back to ...
1
vote
0
answers
43
views
git diff a file against the multiple files it was split into
I have a file A on branch old_branch that exists as multiple files A, B, C on a different branch new_branch. I need to merge old_branch into new_branch which would require me to resolve the merge ...
0
votes
0
answers
28
views
Isolate repository subdirectory into a separate branch
How do I break a subdirectory from main and push it onto a new branch (preferrably without disturbing the history of main in the process)? I don't really care about the sub history.
Currently I have ...
0
votes
0
answers
38
views
When creating a new depository what's the real purpose of -M in git branch -M main?
I'm creating a new depository and I have to comment exactly all these code lines :
"""
echo "# fleurs" >> README.md
git init
git add README.md
git commit -m "first ...
0
votes
0
answers
17
views
branch analyze using Jenkins
I know ther is branch analyzing in SonarQube
Is ther similar thing in Jenkins? or any way to analyze branches using Jenkins?
I looked it up documents from Jenkins and there was multibranch pipeline ...
0
votes
1
answer
28
views
Configure git to automatically track _specific_ (different) remote branch when creating branch locally
Imagine I have a repo with two branches A and B. I clone it:
$ git clone [email protected]:group/project.git
$ cd project
I checkout A:
$ git checkout A
Branch 'A' set up to track remote branch 'A' from ...
0
votes
0
answers
28
views
Old branches on remote cannot be deleted [duplicate]
I have been extensively looking for this, but none of the online replies worked for me.
I have a git repo, on local I have only the master branch
% git branch
* master
however, a number of old ...
2
votes
0
answers
92
views
How to avoid such terrible codegen (SIMD->memory spilling) on MSVC with branches?
For this code:
#include <immintrin.h>
[[gnu::target("avx2")]]
[[msvc::noinline]]
void f(void *a, bool c, long long &d)
{
using V = __m256i;
V v = ...
0
votes
0
answers
15
views
configuration queryparameters in Branch.io
this is a part of backend code:
$query_parameters = [
'item_id' => $id,
'item_name='.$item_name
];
$query_setting = http_build_query($query_parameters);
$...
0
votes
0
answers
76
views
Running a pipeline on a protected branch in GitLab
We set up a containerized GitLab instance recently and we're trying to set up CI/CD pipelines to run on our repositories.
We have the runners set up and working, and as we created these repositories, ...
0
votes
0
answers
14
views
Creating Branches in VSCode get associated with my GitHub Account, but Commits don´t
when I create a branch in VSCode via "git checkout -b test" a new branch is created on Github and its shown as "My Branch". So there is a connection between my VSCode and GitHub. I ...
0
votes
0
answers
18
views
Issue with Github compare after a revert
This is the layout of my Git projects.
Master < Dev < Dev2
I have been working on changes on Dev2 for months, and recently moved them up to Dev to get ready for deployment. In the mean time a ...
0
votes
1
answer
126
views
Dynamic values into pipeline resource branch value
I want to provide every time different branch name for download artifacts in azure devops. I have code like this resources:
pipelines:
- pipeline: Pipeline_name # Name of the pipeline resource
...
1
vote
0
answers
24
views
Regarding REL label is restricted when we try to apply by using core view
**view **: cint_c1a_8ch_shift_RN_C1A_SHIFT
Label name: REL_C1A_SHIFT_SW_SOP_HWD01_SW04_V00_CGW_REN_NIS_C1A_8CH_SHIFT cint_c1a_8ch_shift_RN_C1A_SHIFT_3
config spec of view:
element lost+found -none
...
0
votes
0
answers
24
views
How to label or add a metadata comment to branches in Github.com
In Github.com, we have ~300 branches on a repo - it's hard to keep the repo tidy. Some of them can be removed, but it's a large project, so we don't all know each other to know if it's safe to do so.
...
1
vote
1
answer
52
views
How can I undo someone removing git history on master branch?
I am working on a school project and someone in my group pushed their code very late at night, however there were a couple of major issues:
They pushed straight to master, not on their own branch.
...
1
vote
1
answer
99
views
git GitHub remote branch push cannot be resolved to branch
Trying to push to a GitHub Repository, to a branch named Kedabra, did init checkout clone fetch add . and when I push y get the error "Kedabra cannot be resolved to branch".
git remote add ...
1
vote
1
answer
76
views
How to make a git branch the descendant of an other without changing its content?
I have two branches, 2 and 4:
2c <- top of branch 2
|
2b
|
2a <- root branch 2
and
4c <- top of branch 4
|
4b
|
4a <- root branch 4
The ...
3
votes
0
answers
439
views
The chat history is being recorded twice, using both RunnableWithMessageHistory and RunnableLambda from LangChain
As shown in the following code, I want to create a branch in RunnableLambda, and at the destination of the branch, I want to use RunnableWithMessageHistory to generate a response considering the chat ...
13
votes
0
answers
283
views
Xcode loses package dependencies when switching git branches
Since Xcode 15, every time my colleagues and I switch git branches (we do this a lot), Xcode seems to "lose" the package dependencies. If we don't notice it immediately, we notice as soon ...
0
votes
1
answer
199
views
Branch.io live keys should be private or public
I'm kind of lost in the documentation of Branch.io regarding the right implementation of Branch.io live keys, i'm merely wondering whether Branch.io live keys are safe to be embeded in client side ...
0
votes
0
answers
43
views
Feature Branch Needs to Be Split Into 2 Unique Feature Branches But Commits Are Not Distinct
I have branch cool-new-feature that is going to be in the works for a few months. While working on this new feature I also refactored a large number of files. The refactored code is used throughout ...
3
votes
0
answers
56
views
Best practice for managing requirements.txt in develop/main branches?
Our product uses a requirements.txt file to specify required third-party packages.
In the development code branch, our practice is to not use any pinned versions in this file, so that we always get ...
0
votes
0
answers
27
views
Xcode commits (possibly outside of any branch) disappeared, how to get them back?
This could be something I overlooked, that the commit is not actually under any branch, and now it cannot be seen under Xcode -> Source Control navigator -> Repositories
The only place that ...
0
votes
2
answers
109
views
How to fix "this branch is 1 commit behind of master branch"
I am working on android studio and am fairly new to GitHub. I created a new branch diverging from origin/master lets name it "newCommits", I added a new functionality and made 1 commit to ...
2
votes
1
answer
171
views
How can I merge these two branches?
First of all, I just started to learn git.
I want to merge the red branch into the others, but there is no merge button.
In fact, essentially, I don't know why they are seperated.