A
A
Apxu2017-07-14 15:42:47
git
Apxu, 2017-07-14 15:42:47

How to delete a remote(origin) branch?

Good afternoon,
we work as follows:
There is a master branch and a develop branch. For example, we start to cut new functionality in a new branch created from develop. When everything is ready, we merge develop with a branch of new functionality, then we delete the branch of functionality (as I understand it local), then it pushes to origin develop. Those. as a result, the new functionality is in the remote develop, the functional branch is deleted, but the remote branch remains and they begin to be stored in the repository, see screenshot
509e9bf17a2e4dfca106e0dc1538b88d.png
What is the right thing to do in this case? Just remove it by hand? Is it possible to somehow delete origin testbranch with a command in the console after git branche -d testbranch ?
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Zagaevsky, 2017-07-14
@Apxu

git push origin --delete <branch_name>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question