본문 바로가기

기타4

깃 명령어 초기 PUSH git config --global user.name [github 가입이름] git config --global user.email [github 가입이메일] git init git add . git commit -m [메세지] git push -u [repo 주소] master branch 이름이 바뀌었을 때 git branch -m main master git fetch origin git branch -u origin/master master git remote set-head origin -a Origin 추가 git remote add origin [repo 주소] 2023. 2. 12.
도커 컨테이너 환경에서 학습 중 "Killed" 발생 시 해결 2021-11-06 09:52:22,967 - mmdet - INFO - Environment info: ------------------------------------------------------------ sys.platform: linux Python: 3.7.10 (default, Feb 26 2021, 18:47:35) [GCC 7.3.0] .... 2021-11-06 09:52:51,385 - mmdet - INFO - workflow: [('train', 1)], max: 12 epochs /opt/conda/lib/python3.7/site-packages/torch/nn/functional.py:718: UserWarning: Named tensors and all their ass.. 2021. 11. 7.
GIT fatal: 'master' does not appear to be a git repositoryfatal: Could not read from remote repository. 발생 시 fatal: 'master' does not appear to be a git repository fatal: Could not read from remote repository. 위와 같은 에러가 발생한다면 git remote -v 로 github repository 연결되어 있나 확인 아무런 내용도 안뜨면 git remote add origin https://github.com/username/repo이름.git 로 추가 현재 프로젝트에 등록된 리모트 저장소 추가 그 후 git pull 진행 git pull origin master 이러면 이상없이 동작하는 것을 확인할 수 있습니다. 2021. 2. 8.
Github 다뤄보기 Commit : 파일 변경 내용을 저장소에 저장 push : 파일 변경 내용을 원격 저장소에 업로드 기본적으로 작은 작업 단위로 commit을 하고, 어느 정도 작업이 완료되면 push 로컬 저장소 : 내 컴퓨터 원격 저장소 : 서버에 있는 저장소 로컬에서 작업 후 원격 저장소로 저장하는 게 기본 흐름 브랜치 : 유지 보수를 하면서 새로운 기능 추가 등 여러 버전 관리를 위해 존재, 흐름을 분기하며 기록, 분기 한 지점은 다른 지점의 영향을 받지 않아 같은 저장소에서 각 개발 가능 사용법 (보통 2~5번이 반복됨) Github에 저장소 작성 (git init) 또는 복제 (git clone) 파일 작성 및 편집 파일 생성 / 변경 / 삭제를 인덱스에 추가 (git add) 변경 결과를 로컬 저장소에 co.. 2021. 1. 20.