| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 |
Tags
- pandas
- GitLab
- LLM
- numpy
- evaluation
- Windows
- list
- TORCH
- Database
- Laravel
- git
- file
- PostgreSQL
- format
- pytorch
- Flask
- KAKAO
- Container
- DB
- ubuntu
- Converting
- AI
- Python
- 책갈피
- Paper
- Package
- Linux
- judge
- docker
- Mac
Archives
- Today
- Total
Daily Develope
[Git] 기본 명령어 (init / commit / stash) 본문
목차
- 신규 생성/등록
- Commit
- Stash (임시 저장)
신규 생성/등록
git init
git add {file} # 업데이트할 파일 추가
git commit -m "{message}" # 업데이트시 기록할 메시지 등록
git remote add {remote_name} {remote_url} # remote_name으로 원격 저장소 주소 기록
git push -u {remote_name} {branch_name} # remote_name의 branch_name 업데이트
Commit
ㅇ 전체 파일 일괄적으로 add 및 commit
git commit -a -m "{message}"
ㅇ Add된 파일 취소
git restore {file_name}
ㅇ Commit 취소
git reset HEAD {target_filename}
Stash
ㅇ 수정사항을 commit 하지 않고 임시 저장
git stash push -m "stash_name"
ㅇ 목록 확인
git stash list
ㅇ 불러 오기
# 최근 push된 stash 불러오기
git stash pop
# 특정 stash 불러오기
git stash apply stash@{0}
ㅇ 상세 보기
# 최근 stash 보기
git stash show
# 상세 보기
git stash show -p
# 특정 stash 정보 보기
git stash show stash@{0}
'Git' 카테고리의 다른 글
| [Git] add 응용/명령어 정리 (0) | 2022.06.29 |
|---|---|
| [Git] 오류 정리 (0) | 2022.01.07 |
| [Git] .gitignore 작성 (0) | 2022.01.07 |
| [GitLab] YAML 파일 작성 예시 (Maven, JUnit 수행) (0) | 2022.01.07 |
| [Git] Branch (조회 / 생성 / 삭제 / 변경 / 합병) (0) | 2022.01.07 |
Comments