Can't remove a remote git branch
This is what I'm doing.... how do I get rid of the origin remote branch? And what is it?
[master] /dir: git status
# On branch master
nothing to commit (working directory clean)
[master] /dir: git remote show
[master] /dir: git branch -r
origin/HEAD -> origin/master
[master] /dir: git branch -rd origin/HEAD
error: remote branch 'origin/HEAD' not found.
[master] /dir: git branch -rd origin
error: remote branch 'origin' not found.
[master] /dir: git branch -rd origin/HEAD -> origin/master
-bash: origin/master: No such file or directory
[master] /Applications/MAMP/htdocs/asanawww: git branch -rd origin/master
error: remote branch 'origin/master' not found.
[master] /Applications/MAMP/htdocs/asanawww: git push origin :master
fatal: 'origin' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
I also tried
git gc --prune=now
with no luck
I created a local branch by using git checkout -b mybranch Then I made certain changes to it and pushed to remote with git push origin mybranch However, I cannot see my local changes in the remote
Wondering if someone has an idea of whats wrong. I created a local branch called refactor I wanted a peer to look at the changes so I published the branch in visual studio 2013. Looking at the tfs
When trying to delete a remote branch I get the following error: $ git push work :18300-018_5 remote: Processing changes: refs: 1, done ! [remote rejected] 18300-018_5 (can not delete references) erro
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
So I'm in a shell and I do the following: git fetch --all --prune git reset --hard git branch And the following is listed *master branch a branch b On the remote, there are two branches. master and
To delete a local branch in git I use git branch -d, but how do I safely remove a remote branch? I would like to delete it only when the remote branch is merged to my current branch.
I have a local repository that I want to mirror to the remote 'websrv'. This used to work fine until I deleted a local branch. Now when I do git push --mirror websrv I get remote: error: By default,
I could use a hand with learning how to push a local branch to a remote branch. Please see below. Help much appreciated! The local branch was created after cloning the repo then doing $ git checkout -
This question already has an answer here: git remote branch deleted but still appears in 'branch -a' 3 answers I want to delete some remote branches of my project repository. I've run the next
I was originally on my master branch. Then, I created a new branch: git branch my-other-branch Then, after I made some changes on my project, I pushed this branch to origin to make it a remote branch
Is there any way to modify central repository's configuration to disallow any remote pushing to master branch (using git)? It would only be updated via branch merging by a release owner. It is possib
In Git, if we have the following command: $ git remote add myapp firstname.lastname@example.org:xyz/myapp.git What does this command mean? And, does it differ if we replace myapp with origin? Thanks.
How do I remove commits which have no changeset using git filter-branch? I rewrote my git history using: git filter-branch --tree-filter 'rm -r -f my_folder' -f HEAD this worked out well but now I ha
When using GIT, how would one get (fetch/pull/whatever...) a remote branch that someone else has committed to the remote repository to your own local repository in a way that does not try and perfor
I am doing this command with git: git push origin mybranch It keeps saying Every up to date but nothing happened on the server side. I think I did something wrong before but I am not sure where: Ye
I have created a local branch X that at some point I pushed to remote server (origin) git push origin X I realized it's a bad idea to have branch named X and want it to be called Y The problem is tha
how can git remote repository public or private automatically stores email address of when someone forks or clones a branch from any branch? or this feature isn't there ? for a github user I would nee
My origin has a fixes and a fixes_v3 branch. My client has just fixes. I do a git pull git+ssh:/.../mygitrepo and suddenly on my client I have all the fixes_v3 code in the fixes branch. Why on earth d
Sometimes by mistake some of users tend to push their local branches to a remote repo creating a new branch on the remote repo. How can we disallow the users to create new branches on a remote repo bu
I have the branch master which tracks the remote branch origin/master. I want to rename them to master-old both locally and on the remote. Is that possible? For other users who tracked origin/master (
I am trying to quiet the git remote update command in my Ruby script. I used the --quiet flags of other Git commands like git checkout [branch_name]. For some reason Git doesn't have that flag when do
I'am using git as scm of choice but have to use a svn-repo. I can create a svn-remote-branch like this: git svn branch the_branch But how can i delete the remote branch?
I had a git repository with a remote branch origin/master. I needed the repository to track a branch on another remote git server m1/master. So I added the new remote server using the git remote add c
How does one add a local branch from that of another developer? My colleague's branch is not out on origin. Thanks!
I find it confusing to that in git, to remove a remote you use 'remote rm'... git remote rm myremote ...while the syntax for deleting a branch requires the -d (or -D) switch: git branch -d mybranch
I am using Bonobo Git Server for hosting my remote git. Is it possible to lock some branches in a repository so that it is only commit-able by authorize people? Other people can create their own branc
I'm still a noob with Git and have been googling and reading the scm book about pulling from a branch. I'm not sure why this doesn't work. When I do git branch -a, this is what I see: I'm trying to p
Is there any way to reset a remote branch pointer to a SHA that you know is in the remote reflog, but that you don't have in your local repo? I'm very familiar with how reset (soft/mixed/hard) works o
Is it possible to pull from a remote repository but only selectively take files from that remote that I'm interested in? I don't want to simply pull down the entire branch. Thanks.
I cannot remove a remote branch called origin/featureBranch. I guess it's because the branch name starts with origin, but I am not sure: $ git branch -r | grep featureBranch origin/origin/featureBranc
This question already has an answer here: Checkout remote Git branch 11 answers I have a remote branch: git branch -a *master remotes/origin/develop Can I checkout to remotes/origin/develop ?
In the project I'm working on, there is a shell wrapper for git clone as: $git clone -b $branch git://$host/$path $ROOT/$repo (cd $ROOT/$repo && $git remote add ssh git@$host:$path) I wonder
I have a repository myrepo but when I try to fetch it, I cannot. This repository exists on Github as well. Fetching origin/myrepo causes an error as well. Here is the error: $ git fetch myrepo fatal:
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
When I perform branch -a: $ git branch -a * master remotes/origin/HEAD -> origin/master remotes/origin/hello remotes/origin/master And then I remove the branch: $ git branch -r -D origin/hello Del
A developer in my team committed his changes to the wrong remote repository. I want to remove what he pushed to this repository on the remote repository. I don't want to change anything locally. There
How do I push changes from a local git branch to an existing non-master remote branch? If I do a git push, it tries to push changes in all local branches to the remotes they are tracking.
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'd like to create a remote branch. The most commonly suggested way seems to be: git checkout -b newbranch origin/startingpoint git push origin newbranch But this will create the branch locally and p
I'm confused about why my production server seems to think it is ahead of my master branch. I use fabric to deploy, and it runs a git pull on the server from my master branch on github. I make no chan
If I create branches on my local git repos like so: git checkout -b test then do a push git push I don't actually see the new branch test in my GitHub page. How do I make my remote branches mirror my
When I found my wrong mistakes at remote branch, I always delete this, squash locally and push again. Because I heard 'git push -f' was dangerous. However I noticed push result showing after git fetch
I have been using git and git-svn for a while now but we have moved out svn repository server to another location. So what i am wondering is what to I need to do for git to look at the new remote path
I want to delete a branch from Atlassian Stash (a sort of github clone) in order to revert my changes. Please let me know what command will do this? What I know is git branch –D prod-652 deletes the b
there are 2 machines, which i use. i have cloned one git repository of application which i work on. on machine A i have cloned this repo, have worked on various features on different branches which i
I have a local repository cloned from a remote one. When I do: git branch -a I get: * add-real-testcases couchdb_1.1.0 master remotes/origin/HEAD -> origin/master remotes/origin/couchdb_1.1.0 Now
I have a git branch that I have been working on called feature1 with committed code. I realized that I would like to split up some of the new functionality into a new branch called feature2 and remove
I was holding an introductory presentation on GIT when someone from the audience asked me how to lock a remote branch, preventing a push from someone else. I understand why a person that has been usin
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
when i deploy production code i simply do git push production - i have a post-receive hook that does this: git checkout -f - that will update our production code with the latest push. In this case