A
A
Akaero2018-02-09 10:57:18
git
Akaero, 2018-02-09 10:57:18

How do I set up automatic deletion of a VS branch?

Hello. A few possibly naive questions.
There is a Visual Studio 2017 to which GitLab is connected. After deleting a branch on the GitLab site, I update the remote repository in studio and the remote branch is still visible in it.
1. Am I doing something wrong or is this behavior normal?
2. Am I doing the right thing by creating, deleting and merging branches on the site, or is it better to download the console utility, or better from the development environment?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stanislav Pugachev, 2018-02-09
@Akaero

1) it is normal that the
computer always does/shows exactly what it really is, it never deceives
you that it does not match your expectations - usually the result of erroneous ideas about the mechanics of things
2) and yes and no,
there will be no difference until you deal with the fact that there is a remote repository and your cloned local version of this repository
, and if you delete a branch from remote, why on earth should it disappear from the local version automatically? you need to at least pull
the same with deleting a branch locally
you can do this but this does not mean that something will automatically happen with the remote repository
, that is, you need to do 2 things
- delete the local version
- push this change to remote
git push <remote_name> --delete <branch_name>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question