Newbie? First, make a backup.
cp -r your/repo/dir your/repo/dir.bck
Use
git branch -d branchname
to delete the branch with name branchname
You can lookup a detailed manual with
git branch --help
This will say
-d, --delete
Delete a branch. The branch must be fully merged in its upstream branch, or in HEAD if no upstream was set with --track or --set-upstream-to.
-D Shortcut for --delete --force.
It will also give you an example
Delete an unneeded branch
$ git clone git://git.kernel.org/.../git.git my.git
$ cd my.git
$ git branch -d -r origin/todo origin/html origin/man (1)
$ git branch -D test (2)>
- Delete the remote-tracking branches "todo", "html" and "man". The next fetch or pull will create them again unless you configure them not to. See git-fetch(1).
- Delete the "test" branch even if the "master" branch (or whichever branch is currently checked out) does not have all commits from the test branch.