
1. working directory를 마지막 push 시점으로 되돌리기 2. working directory를 이전 commit 시점으로 되돌리기 3. 특정 시점 특정 파일을 restore 1. working directory를 마지막 push 시점으로 되돌리기 git reset --hard origin/main # /, hard 옵션을 통해 working directory를 복구 reset 옵션 3가지 soft -> hard 순으로 영향 범위가 넓어진다. 1.--soft : branch ref 2.--mixed (default) : index 3.--hard : working directory 2. working directory를 이전 commit 시점으로 되돌리기 특정 파일 삭제 후 커밋 git ..

git branch 간단한 tutorial입니다. 1.branch 생성 git branch sub1 # sub1 branch 생성 2.branch 변경 - checkout git checkout sub1 # 현재 branch 변경, sub1 branch * branch 생성 및 변경 한번에 하기 git checkout -b sub1 # sub1 branch 생성 및 현재 branch로 변경 3.push touch testfile.txt # 파일 생성 git add testfile.txt # indexing git commit -m "create testfile" # commit git push origin sub1 # push, remote repository에 sub1 branch 생성 git bran..

기본적으로 git push시 인증정보 입력이 필요합니다. 보통 username / PAT(Personal Access Token)을 입력하죠. git config 설정을 통해 인증정보를 저장하여 별도 인증절차 없이 push 할 수 있도록 할 수 있습니다. git config --global credential.helper store # 인증정보 저장 설정 설정 정보는 아래와 같이 확인 가능합니다. git config -l # 설정 목록 출력 cat ~/.git-credentials # 인증정보 저장 파일 내용 출력 이상입니다.

git bash에서 명령어를 실행하면 pager라는 프로그램으로 결과물을 보여줍니다. pager는 console에 출력값을 page로 나누어 보여주도록 하는 기능이며, 여러 설정값이 있습니다. 최초에는 명령어 결과 출력값이 많은 경우 아래와 같이 ':'이 나타나는것을 볼 수 있습니다.. git config -l # git 설정파일 목록 출력 이때 q를 누르면 빠져나올수 있는데, 저는 이게 불편하더라구요. 그래서 pager를 Linux에 cat 명령어 처럼 전체를 보여주도록 설정하겠습니다. git config --global core.pager 'cat' # pager를 cat 명령어 처럼 작동하도록 설정 이상입니다. ㅎㅎ

최초 설치 후 push 명령을 날리면 아래와 같은 메시지가 뜨면서 push가 되지 않습니다. git push origin main -> remote: Support for password authentication was removed ... 원격 보안 접속에 필요한 PAT(Personal Access Token)을 설정하라는 문구이며 설정을 해보도록 하겠습니다. Setting > Developer settings > Personal access tokens Note : PAT에 관한 설명 Expiration : 만료일자, 만료가 되면 재설정해야됩니다. Select scopes : PAT 적용 범위, repo(Repository) 접근시에 이용할 것이므로 repo에만 체크합니다. 생성된 PAT을 버튼을 ..
- Total
- Today
- Yesterday
- docker multi stage build
- express crud
- 티스토리챌린지
- rest api 단건 다건
- postgresql 수정시간 자동 갱신
- 외래키 삭제
- 1종 적성검사 국가건강검진
- 스파르타 코딩클럽
- unmounted setinterval
- Oracle Database 19c install
- Oracle Database 19C 설치
- rest api crud
- 오블완
- 강서 운전면허 시험장
- dockerignore
- postgresql 트리거
- oracle 19c 설치
- unplugin-auto-import
- postgresql on update current_timestamp
- 1종 적성검사 과태료
- rest api 조회 생성 수정 삭제
- vue unmounted
- vue 타이머 해제
- 1종 적성검사 신체검사
- docker image 경량화
- unmounted composable
- vue onunmounted
- 1종 적성검사
- vue 이벤트 해제
- unmounted document.addlistener
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |