There is a remote git branch but no match local branch, how to delete the remote one
The following command:
$ git branch -a
remotes/origin/HEAD -> origin/develop
but I don't want
remotes/origin/feature/foo branch. What could I have done to have this? How do I delete it?
I've tried this:
git push origin --delete origin/feature/foo
but I get this:
error: unable to push to unqualified destination: origin/feature/foo
The destination refspec neither matches an existing ref on the remote nor
begins with refs/, and we are unable to guess a prefix based on the source ref.
error: failed to push some refs to '...my remote repo...'
Any ideas? Many thanks :).
I need help understanding the following: I'm running a Jenkins job to build out a project hosted in a remote git repo. I am checking out code to a sub-directory, and checking out specific local branch
I have a Git repo hosted on Bitbucket. If I have 3 branches say master, branch_2, and branch_3. I have pulled down the master branch to my local machine which I've made a change on, committed and push
How can I create a local branch that tracks a remote branch with libgit2sharp? The git equivalent would be: git branch --track development origin/development
Can anyone help, i have my local branch which i did a pull from my remote and then i have just done about 7 commits and they are all wrong :-) So what i want to do is revert to my remote branch copy.
I want to delete a branch both locally and on my remote project fork on GitHub. Successfully Deleted Local Branch $ git branch -D bugfix Deleted branch bugfix (was 2a14ef7). Attempts to Delete Remote
I set up a ssh key on the machine, cloned a branch on my local machine then tried to delete its associated branch on the remote. Below are my step. Delete the local branch using git branch -D abc-123
What is the all-in-one (or at least easier) way to accomplish this? Basically I want to create a branch but have it tracked so I can push changes, as a backup, to a central repo. git branch BranchName
how do I fetch a remote branch and update git's local ref for that branch without effecting the current branch? For example if I do this $ git pull origin master origin/master is merged into my curre
$ git branch -a * SocialAct master remotes/origin/HEAD -> origin/master remotes/origin/SocialAct remotes/origin/social I want to delete the remote branch remotes/origin/social, and applied follo
Given a local / remote branch name, how could I get the hash of the commit that this branch points to?
I have a remote and a local git repository. Local repository is clone from the remote. When I modify my local repository and commit to the master branch. Then I run git push to remote repository. Bu
I set just a simple description for my local branch and now I'd like to see it. How one can see description for a branch set by issuing git branch --edit-description?
I have a remote project that have a branch. So I first clone the repo. Then issue the following to the clone to work on a branch: git checkout -b <name> <remote_branch_name> Then I made t
I'd like a command that emits the name of the tracked branch for the branch I'm on. Something like: $ git checkout --track -b topic origin/master Branch topic set up to track remote branch master from
So here's the situation. I created a local branch. Then I pushed that local branch to github. So github now has two branches. Now I want to merge the two branches together both locally and on github.
This question already has an answer here: Make an existing Git branch track a remote branch? 10 answers I created a new local branch and pushed it with git push origin my-branch How can I auto
I have pulled all remote branches via git fetch --all. I can see the branch I'd like to merge via git branch -a as remotes/origin/branchname. Problem is its not accessible. I can't merge or checkout?
Imagine, I have several branches: master, a, b, c ... Now I'm in master branch and git pull. This fetches all changes from remote server into origin/master, origin/a, origin/b ... branches and merge
I have a local branch named future-db which is tracking the remote branch wip/future-db. This part works fine: $ git push -u upstream future-db:wip/future-db Branch future-db set up to track remote br
I would like to check which of my local branch are closed on remote server and remove them from my local list - is there such git (or any other e.g.bash) command? My current flow: git branch to list
I would like to know how to delete a commit. By delete, I mean it is as if I didn't make that commit, and when I do a push in the future, my changes will not push to the remote branch. I read git he
When branch B does not exist locally, but is on the remote repo, git branch * A git branch -a * A remotes/origin/B How can i pull B to my local repo? Should i git checkout B first? Should i pull, wh
I have a remote tracking branch tracked locally in my local repository using 'git branch -b branch-name origin/branch-name'. My remote branch is test2/test2 (origin/branch-name) which is being tracked
I know that local branches can track remote branches, but there is also the possibility that a local branch tracks another local branch. What is a use-case for this?
I merged my local feature branch “navDrawer” into my copy of the remote “dev” branch. When I sync’d “dev”, it also created a remote “navDrawer” branch. Now I have 3 remotes (master, dev, navDrawer). H
I'm using GitHub, when I git branch -a, it shows like this: master * develop remotes/origin/HEAD remotes/origin/develop remotes/origin/master remotes/origin/feature001 remotes/origin/feature002 remot
So i've got something like this for a repository atm. D-Hewards-MacBook-Pro:project dheward$ git branch -r origin/master unfuddle/master Interestingly because it is the master branch of the unfuddle
Nowadays, I see a lot of commits from Linux Torvalds and/or Gitster that look like so: Merge branch 'maint' of git://github.com/git-l10n/git-po into maint … * 'maint' of git://github.com/git-l10n/git-
I have 2 branches in my git repository: capsule-os * remotes/m/ics capsule-os is branch with my local changes to the remotes/m/ics branch. I work with (and build) the capsule-os branch, but remotes/
This question already has an answer here: How to delete a Git branch both locally and remotely? 16 answers Help me to delete git remote branch. I work with netbeans and I tried to delete remote
I have 2 branches in my local system named A and B. I checkout to B means now I am in B. I wrote some code, commited in that branch itself but I didn't push the branch to remote. Now I checkout to A,
After I did a clone of a repo, a new branch test has been added to the origin remote. But I still see: $ git branch -a * master remotes/origin/HEAD -> origin/master remotes/origin/master What git
I've cloned repository A's master branch from git and created my own branch called Li. I've made some changes a while ago and pushed the contents of local Li to remote Li. Now I've pulled some updates
I am trying to checkout a remote branch: Somebody pushed a branch called test with git push origin test to a shared repository. I can see the branch with git branch -r. But how can I get this branch?
Im trying to delete a remote branch and it keeps on re-listing. I have tried 1) git branch -rd origin/legacy 2) git gc --prune=now 3) git branch -d -r origin/legacy 4) When i try git remote rm origin/
Why when I run 'git remote show ' why it said HEAD branch (remote HEAD is ambiguous, may be one of the following): dev master Remote branches: dev tracked master tracked why git does not know the r
I can't delete the branch in my remote server. First I tried this one git push origin --delete devTime but it gives me an error like this: fatal: 'origin' does not appear to be a git repository fat
Subtrees in Git work nicely although some git commands remain to be supported for subtrees. Here's the question: How to make the subtree pull from a different remote branch like stable or integra
When I run git branch -a I get this: master origin remote upstream web_search remotes/origin/HEAD -> origin/master remotes/origin/ba remotes/origin/insur remotes/origin/master remotes/origin/mv re
I'm trying to push to heroku, but I recently dropped back a few commits as the production and local code were both flawed. Now I'm getting the error: Updates were rejected because the tip of your curr
Is it possible to to target an app version in Heroku based on the current Git branch? In the Heroku docs, its specifies how to target a a specific version of the app. # run command on 'production' $ h
I'm not able to figure out how to remove a remote branch. I was trying to mimic the following GIT command: git push origin :branchToDelete The following code and it's variations with the empty source:
Possible Duplicate: git delete and recreate branch To be honest I'm not sure ORIG_HEAD can be called a branch, yet it appears in my visual editor as one. I have made a git reset --hard HEAD~1 and
I understand conceptually that a branch I create in my local GIT repository must be configured to track a specific branch on a remote GIT if I expect the commands like pull to work without specifying
I merged in changes from another branch but I am getting conflicts because a file has been deleted on remote but has changes on local branch. I would like to delete the file - I tried git rm path/to/f
Can someone explain a tracking branch as it applies to git? Here's the definition from git-scm.com: A 'tracking branch' in Git is a local branch that is connected to a remote branch. When you push
I tried looking for a an answer to this, but couldn't find any which address this specific need. Which is weird. I want to be able to do the following: create a local branch based on some other (remo
How can I restore an Orphan remote branch that was deleted remotely & no has it anymore?
I've branched off of master and done work on feature-branch. Pushed feature-branch up the remote. Other people's work gets merged into master. I pull the changes to master, then rebase my local versio
This question already has an answer here: How to clone a single branch in git? 6 answers Git clone will behave copying remote current working branch into local. Is there any way to clone a spec