codestates / codestates/OnWedding

[Err] git branch cannot lock ref Error

Open
#86 0 comments 0 reactions 1 assignee Claimed by @namooni View on GitHub
Err
Dominant language
JavaScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

### 어떤 에러인가요?
- feat branch에서 기능 구현을 위한 branch들을 분기하기 위해
$ git switcch -c feature/email feat/email 으로 branch 생성을 시도하니 에러가 떴다.

- ### 에러 메시지
```shell
fatal: cannot lock ref
```

### 에러 핸들링 방법

```js
git switch -c featEmail
// 앞에 feat/ 를 삭제
```
이미 존재하는 다른 브랜치 이름으로 시작하는 브랜치를
체크아웃 해서는 안된다는 Stackoverflow 글을 확인하고,
feat/email 대신 featEamil을 사용했다.

### 에러 핸들링을 위해 참고한 레퍼런스 링크
[링크](https://stackoverflow.com/questions/45141188/git-fatal-cannot-lock-ref)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.