Removing refs if they are part of packed-refs file

Signed-off-by: Mohan Boddu <mboddu@bhujji.com>
This commit is contained in:
Mohan Boddu 2020-09-08 15:36:28 -04:00
parent 11cc0f8446
commit c9ad4a18ee

View file

@ -67,6 +67,13 @@ cd /srv/git/repositories/<namespace>/<foo>.git
mv refs/heads/<branch> heads_<branch>
```
- Sometimes the ref is in the `packed-refs` file, in that case:
```
grep <branch> packed-refs > heads_<branch>
Then remove the line from `packed-refs` file
```
- On your local clone of <foo>, check that the branch was deleted upstream:
```