Questions tagged [branch]
The branch tag has no usage guidance.
32
questions
1
vote
1
answer
84
views
git-show-branch output showing in my git prompt
When I navigate to the directory of my git repo, my command line shows me a lot of stuff. It looks like the output of git-show-branch. I've tried to edit my git config file to change the default for [...
2
votes
1
answer
4k
views
Find the default branch name for a Git repository?
I would like to be able to ask Git "what is the default branch name for this repository?" and I would expect either main or master as the result. I've search git config but haven't been able ...
0
votes
2
answers
209
views
In GIT, how can I know on which branch a specific commit was initially made ? And/or which commits were initially made on a specific branch?
I came out with the following trick which kind of works, but I'm sure there must be an easier way to do this.
For each commit, I actually take the first line of the 'git branch --contains ...' command....
-1
votes
1
answer
550
views
RTC to GIT migration
I want to migrate all streams with history to new git branch.Can you help me.Is there any tool or any solution simply?For example for each stream I want to create a brach in git with stream history
2
votes
2
answers
4k
views
git Can't switch branch because of changes I can't commit
I have a git repository that's public on github.
There, I have a local file I don't want to share to the public, while other team members want it to be public, so I did git update-index --assume-...
4
votes
2
answers
3k
views
What does [1 note] means in Git(Lab)'s commit tree?
My company is using a private GitLab. I recently looked to the graph of branches and commits, and it showed this. A [1 note] label that looks like the labels GitLab uses to show the branches' heads (...
0
votes
0
answers
34
views
Github Branch Creation Data from API
I want to analyze open source software collaborations. For my purposes I need to get the approximate point in time when a branch was created, even if it was merged afterwards. Is there a way to get ...
0
votes
1
answer
24
views
Replacing published branch
Suppose there is an upstream project that does not use git, and that I am maintaining a codebase based on this project's released tarballs. I maintain a git branch master and my branch my from it. I ...
0
votes
2
answers
152
views
Centralizing data AWS
I want to centralizer about 1TB of data in AWS for 3 on premise locations (5 users each location). We are going growing but still small. Each location has a 30/5mpbs connection. Each has its own Linux ...
0
votes
2
answers
408
views
Can't do proper git pull request
I'm new to GitHub and therefore I messed a lot with it, so I need some step-by-step help. Sorry for being annoying :/ Also, before I say anything, I'd have to clarify that I used only GitHub, because ...
2
votes
2
answers
20k
views
Removing a file in a branch in git implies removing it from the master branch as well?
I just faced a situation that seems illogical to me with Git. I have a repo with a plenty of commits, so at this stage it has only one branch (master).
Suppose this branch has a file called MyFile....
10
votes
2
answers
14k
views
Accidentally worked on wrong branch in Git
I did some work on the wrong branch; I forgot to check out the right branch. Is it possible to change to the other branch and commit my changes there?
0
votes
1
answer
241
views
Git branch: branches not different
For a few days, I have a problem with git.
Let's assume I have a branch "master". I create a branch "normal", I "git checkout normal", and then I change my code a bit.
If I "git checkout master", ...
0
votes
1
answer
800
views
How to split branches on a mercurial repository to make other repositories using HG commands?
For example, I have the following history on my HG repository (i.e. I created a branch on rev. 80), named "Project X":
Project X Workbench:
------------------------------------------------------------...
2
votes
1
answer
123
views
Get git-repository commit into different git-repository branch
Consider the following setup: One Repository1 sits on Bitbucket. A local working copy is situated on my machine. I change files locally, commit and push to Repository1.
Changes in Repository1 (on ...