본문 바로가기

Git/명령어3

[ 깃(git) ] pathspec (branchName) did not math any file(s) known to git 📍 pathspec (branchName) did not math any file(s) known to git local 환경에서 origin branch를 불러오기 위해 git checkout 혹은 git switch 명령어를 입력하는데 다음과 같은 에러문구를 마주했다. 이럴 땐 origin에 해당 브랜치가 있는지 확인하고, 원격 저장소의 최신 이력을 확인하는 명령어인 git remote update를 입력하고 checkout이나 switch 명령어를 입력하면 된다. Reference git-remote Docs 2023. 2. 3.
[ 깃(Git) ] pathspec (branchName) did not math any file(s) known to git 📍 pathspec (branchName) did not math any file(s) known to git local 환경에서 origin branch를 불러오기 위해 git checkout 혹은 git switch 명령어를 입력하는데 다음과 같은 에러문구를 마주했다. 이럴 땐 origin에 해당 브랜치가 있는지 확인하고, 원격 저장소의 최신 이력을 확인하는 명령어인 git remote update를 입력하고 checkout이나 switch 명령어를 입력하면 된다. Reference git-remote Docs 2022. 12. 22.
[ 깃(Git) ] 특정 Branch를 clone하고 싶을 때 📍 특정 Branch만 clone하고 싶을 때 보통 git clone 명령어를 사용하면 default Branch를 받아오는 경우가 있다. 하지만 default Branch말고 다른 특정 Branch를 clone하고 싶다면 다음 명령어로 clone 할 수 있다. # 명령어 git clone -b --single-branch # example git clone -b maintenance --single-branch https://github.com/YWTechIT/.git 2022. 3. 10.