Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gitkraken doesn't automatically delete remote feature branches

Using gitkraken with a gitflow-enabled repository and trying to figure out how to finish a feature branch in such a way so as to also delete from remote that feature branch if it exists. When you use the git-flow scripts this happens for you automatically. with gitkraken there doesn't seem to be any mentions on this in the manual. Am I missing something or is there no way to do this automatically with gitkraken?

like image 366
snerd Avatar asked Mar 02 '17 17:03

snerd


People also ask

How do I force delete a remote branch?

To delete a remote branch, you can't use the git branch command. Instead, use the git push command with --delete flag, followed by the name of the branch you want to delete. You also need to specify the remote name ( origin in this case) after git push .

How delete multiple remote branches?

Deleting Multiple Remote Branches egrep -v "(^\*|master|main)" - exclude branch master and main. sed 's/origin\///' - because the remote branches are prefixed with origin/ this command will filter that part out so it returns only the branch name. xargs -n 1 git push origin --delete - deletes the remaining branches.

Does deleting local branch delete remote branch?

Local branches are branches on your local machine and do not affect any remote branches. git branch is the command to delete a branch locally. -d is a flag, an option to the command, and it's an alias for --delete . It denotes that you want to delete something, as the name suggests.

Should you delete remote branches?

They're unnecessary. In most cases, branches, especially branches that were related to a pull request that has since been accepted, serve no purpose. They're clutter. They don't add any significant technical overhead, but they make it more difficult for humans to work with lists of branches in the repository.


1 Answers

There is no way to do it automatically. They didn't think on remote branches when they develop git-flow plugin, as you can see in this video.

You have to delete it manually after you finish your branch.

like image 113
leader Avatar answered Sep 21 '22 17:09

leader