branch Questions

3

Solved

I've created a new orphan branch with git checkout --orphan orphan-branch and made a lot of commits on that branch. Now I want to replace the master branch with the newly created orphan-branch, a...
Slantwise asked 3/6, 2016 at 9:1

3

Solved

I am trying to create a branch on someone else's repo. I am trying to follow the official instructions, but I get stuck here because Github apparently should offer to create a branch when I type it...
Iniquity asked 20/6, 2015 at 0:9

5

Let's say there is a remote clone of the same git repository that my local repository is cloned from - and there is a branch on that remote clone that isn't present in my clone (not the default bra...
Leprous asked 17/11, 2014 at 23:39

2

My issue is not this issue. On pull, I am getting the following error- error: cannot update the ref 'refs/remotes/origin/features/name/surname’: unable to append to '.git/logs/refs/remotes/o...
Quin asked 17/1, 2019 at 11:58

7

I am trying to workout how branching works in Visual Studio Code and Git. Previously I've worked with TFS which was pretty simple - you create a branch and this is all stored in a separate folder o...
Genipap asked 3/6, 2019 at 14:19

8

Is is possible to display current git branch name in regular windows command prompt? Let's say on windows 7 or 10.
Donella asked 16/3, 2016 at 21:55

10

Solved

whenever I'm trying to upload my files using git push -u origin main I'm getting error which is as follows error: src refspec main does not match any error: failed to push some refs to 'github.com:...
Underthecounter asked 6/12, 2020 at 21:29

2

After getting changes from a different branch using rebase, I'm trying to push the new changes to a remote private branch and I'm getting the following message Push of the current branch XXXX was ...
Garry asked 23/4, 2017 at 13:37

9

I'm aware that branches don't really store creator information - and they're just a pointer to a commit. My goal is to be able to clean out my old branches that have been merged back to the main ...
Kevinkevina asked 16/3, 2016 at 3:39

0

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...
Bravo asked 5/4, 2024 at 13:4

25

Solved

If I run git branch -d XYZ, is there a way to recover the branch? Is there a way to go back as if I didn't run the delete branch command?
Solo asked 4/9, 2010 at 3:25

25

Solved

If I run git branch -d XYZ, is there a way to recover the branch? Is there a way to go back as if I didn't run the delete branch command?
Banderillero asked 4/9, 2010 at 3:25

37

Solved

I am getting this error for pull: Your configuration specifies to merge with the ref 'refs/heads/feature/Sprint4/ABC-123-Branch' from the remote, but no such ref was fetched. This error is n...
Quinlan asked 2/5, 2016 at 14:3

11

Solved

Often while working on a branch I need to introduce some "temporary" changes (such as additional debugging info, or a change which lets me better observe the thing i'm actually working on). About ...
Tuneberg asked 22/8, 2011 at 12:56

52

Solved

How do I get the name of the current branch in Git?
Subnormal asked 5/6, 2011 at 20:13

11

Solved

Using Git, how could I search within all files in all local branches for a given string? GitHub specific: is it possible to perform the above search across all GitHub branches? (There are several ...
Densimeter asked 22/8, 2011 at 17:41

11

Solved

Using Git, how could I search within all files in all local branches for a given string? GitHub specific: is it possible to perform the above search across all GitHub branches? (There are several ...
Canute asked 22/8, 2011 at 17:41

4

Solved

Here's the situation : some commits have been done in a remote repository. Unfortunately, someone did push -f such that no remote branch references these commits anymore. To make matters worse, I...
Candlestick asked 23/2, 2014 at 0:41

12

Solved

I want to have my local and remote repositories always in sync in terms of branches. After a Pull Request review on GitHub, I merge and remove my branch there (remote). How could I fetch this info...
Palfrey asked 1/8, 2013 at 0:4

4

Solved

I recently checked one of my git repositories at work, which had more than 10,000 branches and more than 30000 tags. The total size of the repo, after a fresh clone is 12Gigs. I am sure there is no...
Flavorful asked 18/12, 2013 at 19:4

13

Solved

Is there a Git command equivalent to: git branch | awk '/\*/ { print $2; }'
Patina asked 13/9, 2009 at 15:10

42

Solved

How do I delete untracked local files from the current working tree?
Contraposition asked 14/9, 2008 at 9:6

42

Solved

How do I delete untracked local files from the current working tree?
Keith asked 14/9, 2008 at 9:6

42

Solved

How do I delete untracked local files from the current working tree?
Iberia asked 14/9, 2008 at 9:6

4

Solved

I am trying to merge a Branch to Trunk using the TSVN 'Reintegrate a branch' feature. However I get the following error. Error: Retrieval of mergeinfo unsupported by 'svn://IP.Address'? What ...
Villalpando asked 22/7, 2010 at 9:58

© 2022 - 2025 — McMap. All rights reserved.