기타/git(3)
-
error "could be both a local file and a tracking branch."
개요git checkout을 하는 과정에서 github actions이나 git cli를 사용할 때 아래와 같은 에러가 발생하는 경우상황could be both a local file and a tracking branch.원인'git checkout'을 통해 branch를 변경할 경우 명시적인 명령어 'git switch' 를 추천한다참고https://git-scm.com/docs/git-switch
2025.03.07 -
github forking 정책 제한 하기
개요 레포지토리 포킹가 때로는 큰 보안 사고로 이어지는 경우가 있다. 따라서, Github 조직 레벨에서 forking을 엄격하게 통제하는 것이 좋다. 다행히도 Github의 기본 정책은 forking이 제한되어 있다. Github 조직에서 forking 제한 하기 Organization Profile >> Your organizations >> Settings >> Access >> Member privileges >> Repository forking >> x 참고 https://docs.github.com/en/organizations/managing-organization-settings/managing-the-forking-policy-for-your-organization
2023.12.29 -
git 기초 사용법
- 개요 WSL에서 Bash Level로 Git을 다룰 때 필요한 초기 세팅 방법 - 설정 방법 ## git user git config --global --replace-all user.name "" ## git e-mail git config --global --replace-all user.email "" ## git auth git config --global credential.helper store ## git config list git config -l ## change branch git checkout main ## pull git pull ## create branch & check out git checkout -b feature/ ## apply all changes git add..
2022.12.16