How to list only active / recently changed branches in git?
I sometimes work with source code repositories containing many branches, most of which are old and usually no longer relevant.
In these cases, the full list of branches from
git branch is not very helpful. Is there a way to only list "active" branches? For example, only branches that received commits in the last n days? Ideally, the list would include the last commit date for each branch, and indicate if the branch is already fully merged.
P.S.: I realize that this can also be solved by deleting "old" branches (as discussed e.g. in What to do with experimental non-merged git branches? ), but this may not always be practical or accepted on a given project.
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 have a couple of branches defined for the current project where all but the master branch differ from master only by the same small set of files (less than ten). After implementing a new feature in
I was wondering hows it would be possible to list all the branches of a remote Git repo with jgit but without cloning it. While going through the jgit's javadoc, I found the ListBranchCommand but that
Using a development infrastructure of git, Fisheye+Crucible, and Jira 4.2. Commits to Fisheye-registered repositories are reflected in Jira Projects and Tickets since we configured the mappings in Jir
I'm working with a git repo that has an empty master and multiple branches. When I do a git pull, it only seems to pull stuff down for the master but does not apply for the branches. I find myself hav
When I am switching between branches in git, I am seeing that files are changed even though no updates have been made. This has just started happening recently. $ git status # On branch dev nothing t
When I have to use svn, I use git-svn to talk to svn. I cloned the repo with the standard git svn clone -s line, and all the remote branches at the time were there. Since then, a new branch has been c
I cloned a repo, which contains about 5 branches. However, when I do git branch I only see one: $ git branch * master I know I can do git branch -a to see all the branches, but how would I pull all t
I recently had a question answered about a multi-computer git development setup, and the solution I got there did solve my situation with the master branch, but not side branches based off the master.
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
I maintain a git repository which has a hundred or so branches on the central repository. Many of these branches were created for some purpose long served and are now inactive. Some branches might hav
I want to list the files currently tracked in a git repository. So, I do git ls-files. However doing so, gives me the entire list including all the sub-directories, their sub-directories and so on.. I
When I used gitk to check my branches, I found the following: I created pretty_url, switched to it, worked on stuff, committed, then switched to master branch (which was clean), then ran git merge pr
how do I push a commit in two branches? I can't use git push, because then it pushes to three branches, and i just want the commit in two of them.. Ive tried a git merge HEAD --commit id from bra
So, I have an extensive list of spinboxes (30) in one tab and a confirmation page on another tab. How can I can display only the names and values of those above 0 in the confirmation page? Not sure if
I am trying to use git svn to connect to our company repository. We have a slightly non-standard branches directory. How to access this using git svn has been discussed before, however, we seem to hav
How do you list the active minor modes in emacs?
I'm trying to determine the best way to programmatically determine which branches have been recently merged into master. Ideally this script will run off a git hook, parsing the values and then do ext
If I have a public Git repository that contains 3 branches like the following: (release-to-customerA) | U (master) / | A---B---C---D---E ... S---T | (release-to-customerB) where commit 'B' was the o
How can I tell git that while I want to allow git fetch on certain branches that I do not want to allow git push on those branches. In other words, I have some branches which reflect current work
I have two branches, one for development and one for production, without tests. The development branch will add new features, with tests. The production branch will have bug fixes and create tests. Ho
I am using git for windows to manage a local project. I have two branches, 'master' and 'change_specific'. I have added some extra files to 'change_specific'. Those files don't show up when I switch t
I have been following the Answers to this question Detach subdirectory into separate Git repository and had some good successes with simple Subdirectories that are only on one branch but now I am conf
Our development environment consists of dev, demo, and master branches. We use JIRA to track issues, and everytime we start an issue, we branch off of dev, make necessary changes, and finally push out
We decided to use GIT in our company but now got a problem.. We have several branches with different features. Now what we need is to merge that branches and push it to Master. How shall we do that wi
I have moodle project in git, and want to constantly update from the original git repository. However it has lot of active branches from which I need only two. Can I set in the gitconfig file to only
I have been using git for a while and am comfortable with most of the operations, push, pulls, merges, branches, forks, etc. My question is about When I clone a repository, I get a copy of all of the
I have two branches on remote and I'm only working on the 'trampo' branch with a friend: git branch -a master * trampo remotes/origin/master remotes/origin/trampo doing a git fetch and git pull is no
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
how can I list newly created(added) files between two branches? I can list all files that have been changed with: git diff --color --name-only branch1..branch2 But that also contains files, that just
I have a git repository that has a remote set up (git fetch works), but it doesn't have any remote branches: the .git/refs/remotes folder doesn't exist, and git branch -r returns nothing (empty
Here's the setup: We have a documentation team, who works in their own git repository. In the main product repository we have master and beta branches, beta was branched from master at merge ID 12345.
With Git, I know you can specify only to selectively fetch a few branches from others. But if your tree is a remote to others, how do you prevent some branches from being fetched by others? Like just
We have git workflow close to one explained here A successful Git branching model Let's ignore release and hotfix branches, cause they don't relate to this issue. I have now three branches: master de
My company is using Kiln so developers can use their preferred tool between Git and Mercurial. I’m a Git user and never used Mercurial. There are some incomprehensions in the use of branches with Kiln
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
I perform a git pull operation and it fetched via few files. How can I run a diff and understand what really changed in all of those files or a selective set of files within that list.
I use the following Git command git diff-tree --no-commit-id --name-only -r <SHA> to get a list of changed files. Unfortunately, the list doesn't specify the type of change for each file: added
I have forked a project on GitHub and I want to download only the changed files from the original repo. Is it possible to do this?
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 have a git repository with two branches, eg master and customers I have a database parameters file called eg db_config.php This file must be different in both branches, but must never be 'pushed'. C
How I can generate a list of remote mercurial branches in groovy? I want to add dynamic chooser parameter in Jenkins. Mercurial-server run as hgweb.
For every story we use a branch in Git. This works great locally but poses a problem when finalizing a feature as we (currently) only push master to our Test environment (IIS). Note that we are using
Is there a command line way of getting the list of branches available in a repo hosted in GITHUB (without creating and running commands from within a clone)? I tried using curl on the url that shows t
Possible Duplicate: Git: How to list branches that contain a given commit? I've just hit a bug in a project on Github. I found an issue listed for the bug, and it lists a commit that supposedly fixe
I am working on a validation software. I keep on the master branch code that is always ready to launch tests. So I develop the new features in other branches (dev for ex). This is classic git workflow
I'd like to compare two branches that have diverged significantly. I would also like to limit my comparison to a particular subdirectory where the files where moved in only one of the branches. Exampl
I currently have imported a huge project from SVN to Git. I decided to flatten out all branches and keep only 2. Master branch and Diverged branch. Master: A-B-C-D \ X-Y: Bugfix Diverged: E-F-G-H The
i am using git-new-workdir script to manage my branches but the branch apparently do not synchronize automatically. I have a repo with three branches (master, branchA and branchB). First i cloned the
I have a reactive expression, the value of which I want to take from whichever of two other reactive expressions has been changed most recently. I've made the following example: ui.r: shinyUI(bootstra