Removing refs if they are part of packed-refs file
Signed-off-by: Mohan Boddu <mboddu@bhujji.com>
This commit is contained in:
parent
11cc0f8446
commit
c9ad4a18ee
1 changed files with 7 additions and 0 deletions
|
@ -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:
|
||||
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue