git 명령어 정리

타닥타닥 2025. 11. 24. 15:19

 

0. 현재 상태 확인

git status

 

1. 원격 최신 변경 가져오기

git fetch

 

2. 원격 브랜치 목록 보기

git branch -r

 

3. 브랜치 전환

git checkout <브치이름>

 

git checkout -b <브랜치이름> origin/<원격브랜치이름>

 

4. 현재 브랜치 최신으로 업데이트

git pull

 

git pull --rebase

 

5. 수정한 파일을 커밋하기

git add .

 

git commit -m "메시지"

 

6. 원격 저장소로 push

git push

 

git push -u origin 브랜치이름

 

7. 수정사항 잠시 보관(stash)

git stash

 

git stash pop

 

8. 브랜치 목록 보기

git branch

 

9. 원격 주소 확인

git remote -v

 

10. 정말 마지막 수단 (git 리셋/초기화)

로컬 변경 되돌리기 (주의)

git reset --hard

 

git 자체 제거 후 새로 시작 (매우 주의)

rm -rf .git
git init

 

 

자주 쓰게 될 조합 3가지

A. 원격 최신 버전으로 업데이트

git fetch
git checkout integration_152
git pull

 

B. 원격에 새 브랜치 생겼을 때

git fetch
git checkout -b integration_152 origin/integration_152

 

C. 수정 후 저장 & 업로드

git add .
git commit -m "update"
git push

 

 

'타닥타닥' 카테고리의 다른 글

gsplat install 오류 기록  (0) 2025.11.24
Posted by useor
,

 

타 기관에서 제공한 gsplat 기반 응용 프로젝트의 가상환경 구축 메뉴얼이 아래와 같았다.

 


# Install CUDA 12.4
### Conda 환경 구축
```bash
conda create -n gsplat_something python=3.10
conda activate gsplat_something
```

### PyTorch 설치
```bash
conda install pytorch==2.4.0 torchvision==0.19.0 torchaudio==2.4.0 pytorch-cuda=12.4 -c pytorch -c nvidia
conda install -c nvidia cuda-python
conda install -c pyg pytorch-scatter
```

### 기타 필수 패키지 설치
```bash
pip install ninja jaxtyping rich tyro plyfile einops
pip install imgui[glfw] pywin32
```


 

상기 과정을 통해 설치를 했지만, 실패하는 경우가 많았다. 원인을 찾아서 아래와 같이 수정하였더니 해결되었음.

 

(Step 1)

conda create -n gsplat_something python=3.10
conda activate gsplat_something

 

(Step 2)

pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124

 

### 설치 검증

python -c "import torch; print(torch.__version__, torch.version.cuda, torch.cuda.is_available())"

 

(Step 3)

pip install -e . --no-build-isolation

 

cd [targer directory]
pip install -r requirements.txt --no-build-isolation

 

'타닥타닥' 카테고리의 다른 글

git 명령어 정리  (0) 2025.11.24
Posted by useor
,

호텔 방문일: 2025년 6월 초.


학회 출장으로 다녀간 호텔.

숙소 내부와 조식 사진을 올려 봄.

객실 입구(안에서)
객실 문 열자마자

 

트윈 침대 배치
침대에서 바라보는 TV
객실 안에서 입구 쪽 바라보며

 

9층 객실.프리웨이 도로변 전망.

 

욕실 세면대
전자렌지가 있음
옷 걸이

 

뷔페식 조식
사과, 바나나가 있고, 팬케익과 와플 만들 수 있음
요거트 냉장고
100% 오렌지 쥬스와 애플쥬스 등

 


스크램블에그와 포테이토가 괜찮았음

Posted by useor
,