Skip to main content

Questions tagged [branch]

The tag has no usage guidance.

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 [...
chargerstriker's user avatar
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 ...
Steven Hepting's user avatar
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....
Michel H's user avatar
-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
user1185191's user avatar
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-...
milkwood1's user avatar
  • 237
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 (...
Motiss's user avatar
  • 101
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 ...
NiklasRz's user avatar
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 ...
gspr's user avatar
  • 568
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 ...
Benjamin Jones's user avatar
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 ...
renyhp's user avatar
  • 3
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....
nKn's user avatar
  • 5,717
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?
Ravenix's user avatar
  • 291
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", ...
Rififi's user avatar
  • 143
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: ------------------------------------------------------------...
kokbira's user avatar
  • 5,387
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 ...
Strongground's user avatar

15 30 50 per page