일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- functools.wraps
- decorator
- pandas
- slicing [::-1]
- boto3
- Python
- PIP
- timestamp
- 쿼리
- S3
- selenium-wire
- os.path
- 고차함수
- 코딩 테스트
- ds_store
- 생각
- 함수형 프로그래밍
- 순수함수
- [초급(예비) 개발자 오픈소스 실무 역량강화 교육]
- reverse v.s. reversed
- CI/CD
- blinker
- Airflow
- sort v.s. sorted
- OS
- r-string
- sort(reverse=True) v.s. reverse
Archives
- Today
- Total
공부일지
[Git]특정 파일만 push 하고 싶을 때 본문
11/22
상황
필요한 변경사항만 add하고
(나머지는 git stash 해줬다. 안 그러면 변경사항이 남아있으니 add/stash하라고 뜨기 때문에!)
git push origin main 했는데 웹 사이트에 안 올라가 있다.
이유
# 이렇게 하지말자!
git add <file name>
git stash
git add <file name> 하고 commit 전에
git stash 를 해서 add 한 것도 stash돼 버린 것이다.
그러면 push가 안 된다.
# 이렇게 하자! stash 전에 commit 먼저!
git add <file name>
git commit -m "<commit name>"
git stash
특정 파일만 push 하고 싶을 때는
git stash 전에 commit 해주기!