Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to remove branch from list of branches? #72

Open
gleb-svechnikov opened this issue Nov 5, 2015 · 0 comments
Open

How to remove branch from list of branches? #72

gleb-svechnikov opened this issue Nov 5, 2015 · 0 comments

Comments

@gleb-svechnikov
Copy link

I need to manage list of branches listed by this code.

app.get('/branches', function (req, res) {
    repo.remote_fetch('origin', function (err) {
        console.log(err);
    });
    repo.remotes(function (err, remotes) {
        console.log(err);
        res.json(remotes);
    });

});

Currently it lists some of them, only that I requested explicitly with

git checkout branch-name

I've removed some of local branches with:

git branch -d needless-branch

But JSON that I see on localhost:3000/braches URL still contains needless-branch
I've tred to stop application and run it again - it did not help.
Can anybody suggest how to remove needless-branch from list of branches?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant