본문 바로가기

전체 글

(285)
error: pathspec 'feature/wallet' did not match any file(s) known to git git clone으로 repository를 클론받은 후 그 안에서 내 feature 브랜치인 feature/wallet을 만들었는데 왜인지 터미널에서 브랜치 위치가 계속 master였던 것이다. 그래서 git checkout으로 브랜치를 이동하려고 했는데 error: pathspec 'feature/wallet' did not match any file(s) known to git 이라는 에러가 떴다. 문제 원인은, 내 로컬과 git의 원격 브랜치 간의 sync가 맞지 않아서 위와 같은 에러가 떴던 것이다. 문제 해결방법은 다음과 같다. 1) git remote update 2) git checkout 브랜치명 으로 해결해주었다. 그랬더니 git checkout이 잘 되어 내가 원했던 feature/wa..
access token 발급 문제 remote 브랜치에 내가 생성한 브랜치를 Push 하려고 했으나 위와 같은 문제를 접하였다. 이를 해결하기 위해서는 다음과 같다. 1) 이전 자격 증명 삭제 git credential-osxkeychain erase http://github.com GitHub: Let’s build from here GitHub is where over 100 million developers shape the future of software, together. Contribute to the open source community, manage your Git repositories, review code like a pro, track bugs and fea... github.com 2) github에서 로그인하..
vscode에서 git 브랜치 생성하기 Git에서 Repo를 clone해오고 거기서 나만의 branch를 만드는 것이 목표였다. 기존에는 인텔리제이만 사용해오다가 vscode를 사용하려고 하니 약간 다른 것 같다..! Mac 기준 다음과 같이 작업하였다. 1) cmd + shift + p로 Code palette를 연다 2) git을 검색 3) created branch from을 선택 4) 내가 만들고 싶은 브랜치 이름으로 브랜치 만들기 5) 터미널에서 내가 만든 브랜치로 git checkout이 되었는지 확인하기 * git에 만들어진 branch의 list를 보려면 git branch -a 를 하면 된다.