1. 자바로 GIT 다운로드 프로그램을 작성하다 나온 에러임

2. 해당 에러는 Eclipse 동작에서 나오는 에러로 검색이 되지만, 
    GIT의 사용자 정보인 id 또는 password가 상이할 때에도 나오는 에러

 

 

'개발 > Git' 카테고리의 다른 글

GitHub 토큰 발급 방  (0) 2022.10.25
원격 저장소에 디렉토리 삭제  (0) 2022.09.22
error: pathspec 'test1' did not match any file(s) known to git  (0) 2022.09.22
GibHub?  (0) 2021.12.03
Posted by 테리
:

1. git$ git rm --cached -r directory_name
    or
    git$ git rm --cached file_name

2. git commit -m "delete directory"

3. git push origin branch_name

 

3번 부분을 진행하지 않으면 원격 저장소에 반영이 되지 않는다.

'개발 > Git' 카테고리의 다른 글

GitHub 토큰 발급 방  (0) 2022.10.25
java cannot open git-upload-pack  (0) 2022.09.26
error: pathspec 'test1' did not match any file(s) known to git  (0) 2022.09.22
GibHub?  (0) 2021.12.03
Posted by 테리
:

Git 명령어로 생성된 브랜치로 옮길 때 에러 발생

현상 : 

1. Git Bash 에서 새로운 브랜치로 push할 디렉토리로 이동

2. [git]$ git init

3. [git]$ git remote add url

4. gitlab 웹 페이지에서 브랜치  'test1' 생성

5. [git]$ git checkout new_branch

error: pathspec 'test1' did not match any file(s) known to git

 

조치 방안 :

1. [git]$ git remote update

2. [git]$ git fetch

3. [git]$ git checkout test1

 

 

'개발 > Git' 카테고리의 다른 글

GitHub 토큰 발급 방  (0) 2022.10.25
java cannot open git-upload-pack  (0) 2022.09.26
원격 저장소에 디렉토리 삭제  (0) 2022.09.22
GibHub?  (0) 2021.12.03
Posted by 테리
: