728x90
1. 리눅스 명령어(압축)
tar 압축하기
tar -cvf [파일명.tar] [대상 폴더명]
# 현재 위치의 pjt폴더를 test.tar로 묶기
tar -cvf test.tar pjt
tar 압축해제
tar -xvf [파일명.tar]
# 현재 위치의 test.tar를 압축해제
tar -xvf test.tar
출처 : https://coding-factory.tistory.com/805
2. Git LFS(Large File Storage)
GitHub에 100MB 이상의 파일을 Push 할 때 필요한 프로그램
1. 리눅스에 Git LFS 설치
su
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
apt-get install git-lfs
2. GitHub Repository로 이동해서 LFS 적용
git lfs install
3. 만약 이전에 해당 업로드 파일에 대한 git add 기록이 존재한다면 unstaging
git rm -r --cached "*"
4. 업로드하고자 하는 파일을 선택 후 git add, commit
git lfs track "*.psd"
git add .gitattributes
(git commit -m "track *.psd files using Git LFS")
5. git add, commit, push
git add *.psd
git commit -m "commit"
git push origin main
출처 : https://wooono.tistory.com/284
3. git push 명령 입력 시 비밀번호를 묻지 않도록 설정하기
credential.helper store 옵션을 주면 최초 인증 이후 인증 절차를 생략할 수 있음
git config credential.helper store
4. git remote add
현재 디렉터리 초기화 및 기본 설정 폴더인 .git 디렉토리를 생성
git init
GitHub 프로젝트 URL를 upstream으로 등록
git remote add upstream <원격 저장소 URL>
GitHub 프로젝트 URL를 origin으로 등록
git remote add origin <원격 저장소 URL>
728x90
'개인 공부' 카테고리의 다른 글
6/21 화_PyTorch Hub, YOLOv5 Inference Settings, Non-Maximum Suppression(NMS) (0) | 2022.06.21 |
---|---|
6/20 월_IOPub message rate (0) | 2022.06.20 |
6/16 목_YOLO v5 Models & Training Arguments, 리눅스 HDD 용량 확인 (0) | 2022.06.16 |
6/15 수_ImageDataGenerator, PYTHONPATH, YOLO v5, metrics (0) | 2022.06.15 |
6/9 목_PermissionError (0) | 2022.06.09 |