Delete multiple remote branches in git
I have a team member who inadvertently pushed over 150 of his local branches to our central repo. Thankfully, they all have the same prefix. Using that prefix, is there a git command or cool little shell script I can use that will delete all of those at once?
One of my favorite workflows with svn is to use Beyond Compare's folder comparison feature to see the net differences between two branches, or a branch and the trunk. Is there a way to do this in git
Tried to use what's here, but that doesn't solve things for me. I've got a local repo in git, cloned from a remote repo, development. I branch locally to play around with a new feature in a branch cal
It seems like I have inadvertently modified my git config such that when I switch from branchA to master all changes are automatically merged to master. This happens without either my committing in br
When I try to push to a remote git branch to delete it with git push origin :branchname I get the following error message: error: unable to push to unqualified destination: remotes/origin/branchname
I'm learning git and I don't understand why we need branches. Why not just develop in a linear fashion?
I have a local repository that i want to push to multiple remote repositories (firstremote, secondremote). This can simply be done by editing .git/config and creating a new remote with multiple urls.
How can I find out what are the differences between 2 remote branches? I tried: git diff --name-status remotes/branch-V4.4..remotes/branch-V4.2 But it gives me a list of files which changes. Is there
Is there a git command that returns a list of remote branches given remote git repository URL? It doesn't make sense that I need to set up local git repository just for listing all remote branches! Th
I found the below script that lists the branches by date. How do I filter this to exclude newer branches and feed the results into the Git delete command? for k in $(git branch | sed /\*/d); do echo
There must be something I've overlooked when I learned Git. After all I'm fairly new to it. My workmate says he's pushed back some changes he made to my commit in our remote repository. However the gi
My git repository has 2 branches: master and develop. I want a script that merges all changes from develop to master automatically. I used Jenkins: The Git plugin clones the repository and then this s
Looking some like pull/push from multiple remote locations in egit. When I right click on git repository and try to push(using Push branch...) I can only push to a single remote repository at a time.
I created a branch newbranch from the master, and then pushed back to the origin. I then created a pull request which was accepted and merged into master. At this point should I delete newbranch
We're working with git in a master and multiple branches strategy. How many branches? A lot, some quite long living (10 long living team branches and 20-30 short living branches off them is normal
In git is there a way to find out redundant branches which are already in the commit history of a particular/current branch ? So that I can delete those redundant branches without loosing any commits
As we consider moving from SVN to git at work, a coworker has raised the concern that a malicious or accident-prone developer could use git rebase to delete remote history from our shared repo. Edit:
We have a gitolite server setup and running for use within our team. The parent for my local git repository is a central svn repo. The gitolite server has been added as a remote and I am able to push
How do I fetch back all the branches for my repository on Git? I tried the following: git remote add origin email@example.com:anchetaWern/Zenoir-Online-Classroom.git git pull firstname.lastname@example.org:anchetaWern/Z
I know I can delete remote branches in Git using git push. (See How do I delete remote branch in Git?). But I can't do the same in Mercurial. I've tried hg bookmark -d something, but when I push to a
I am working in an environment where every contributer basically uses their own branch for basically everything new they make. Therfore we get about 10 new branches a month. I do not know how the bran
I accidentally ran this command: git push --mirror, and now most branches in GitHub are lost. How can I get them back? What information I need to put here?
I have a set of GIT repositories that I always have different activities on differrent branches and they are all pushed to github the activities are linked to Redmine and would trigger Redmine to pick
Suppose that I hav two git branches; branch_one and branch_two. If I merge these branches, will one of the two branches be considered more up to date that the other? Is there a difference between gi
This question: Git - How to push a locally-create branch Received a +1 comment: It looks like the remote repository has been configured not to allow you to push new branches. Now, I created the remo
History: Remote had 8 branches and I forked to create my origin. I created my branch and started working on it. I switched to origin master branch and pulled the remote master branch. Situation: Re
If I fixed a bug in a file in branch branch_a, which should be applied to all branches. Is there a way to apply the change to all branches without having to checkout the branches individually. git com
I have ready many articles about protecting remote branches... I however would like to capture in a git hook the following LOCAL repo command: git branch -d abranchthatshouldnotbedeleted I would like
I've cloned a replicated svn repository (svnsync to local file system). All the branches etc. are now available in git. Now i would like to start working on svn branches git checkout remotes/B_XYZ a
Is there a handy way to get my local git repo to forget about remote branches that have been deleted? git svn fetch doesn't re-sync everything like I hoped it might. My local repo was set up with us
We have two git repos on a remote git server in this format: /git/repo1 /git/repo2 In /git/repo1, I see these files & directories: branches config description HEAD hooks info objects refs In /gi
I have a GIT repository in which there are 4 local branch and numerous remote branch, I want to push the entire repository to the bare repository (including remote branches). I tried using git push or
I'm pruning some branches off of a git remote. How can I find out who created a branch on a remote git repository? Maybe there is something similar to git branch -r --show-user?
I've setup a git environment (mo github) where I have remote: one branch local: a master branch and a featureX branch that I work on it/ Now, on remote some teammate pushed on remote a feature on re
In Git I have two main branches: a stable branch, and a beta branch. One group of people is using code compiled from the beta branch while most people are using code compiled from the stable bran
I had a ruby on rails project, after a while i decided to put it under git, so i change the directory to the project root and i issued a git init command. Then i pushed it onto my bitbucket git repos
I am using an intermediate Git repository to mirror a remote SVN repository, from which people can clone and work on. The intermediate repository has it's master branch rebased nightly from the upstre
My .git/config: [remote origin] url = email@example.com:nfpyfzyf/test.git fetch = +refs/heads/*:refs/remotes/origin/* [branch master] remote = origin merge = refs/heads/master My local branches: HE
The git branching model has a workflow in which we have two branches with an infinite lifetime : develop and master where master reflects a production ready state and develop a state with the latest d
I'd love to be able to clone a project from github, make some changes, then push it to my private git server, all with a few commands. (yes, I like to share things on github too, but sometimes it need
I have a Git/Gitlab repository. We used to commit straight to master, but we decided to switch to using feature branches like the rest of the world for this release. We need to reset our remote master
I'm using git-tfs, and I was wondering if it is possible to merge two TFS branches using git-tfs. I have two branches $/MyCompany/Dev & $/MyCompany/Release-3.3. Release-3.3 originates from the Dev
I'm an individual dev that started using Git (Git Extensions on Windows) several days ago mainly to allow working on my code from multiple computers. I'm slowly getting the gist of it. But my main pro
I would like to simplify this Git history, which contains several Git branches: * 83bc4db |\ | * 66c64f9 | * 32c1a93 | * 8b5fd0c | * 501454e | * b316bac | |\ | * | 6d8f409 | * | ca9747a | * | fa37e88
I am working on a project with a Master branch, of course :P and multiple release branches created over time. The version control I'm using is Git and I was looking for a way to apply bug fixes (for e
We're in the process of converting from Subversion to Git and one thing that I'm struggling with in Git is the method of switching branches. My understanding is that at both at the command line and us
Today is my first day trying to learn Ruby on Rails and Git using a Mac and I created multiple Git user.names by accident. How can I delete the duplicates? Note that I read through the different answe
I have 2 branches in my local, for example: FirstApp SecondApp How to push both of them to remote repo? Do I also need to create two branches in remote as well? Many thanks!
Using the command git branch -a I see several remotes/origin/branchname for remote branches which were deleted from the server already. Why this happens and how to refresh the list? Thank you.
I've a a remote bare git repository. A new developer cloned it, but he didn't had the .gitignore file, so by mistake he committed and pushed some files into the remote. When I pulled the changes and m
I'm working on moving an organization to use git, and I'm trying to determine which would be a better approach, either having a single repo with multiple branches (development, integration and release