해당 게시글은 패스트캠퍼스에서 진행하는 AI 부트캠프에서 학습한내용과 교육과정을 토대로 작성했습니다.
운영체제의 커널과 사용자를 이어주는 소프트웨어
$ ls
예시 :
$ ls
$ cd 폴더주소
예시 :
$ cd Document
$ mkdir 폴더명
예시 :
$ mkdir dev
$ touch 파일명
예시 :
$ touch sample.py
> New-Item ./파일명
예시 :
New-Item ./sample.py
$ mv 파일명 폴더명/
예시 :
$ mv sample.py dev/
$ cp 기존파일명 / 복사할파일명
예시 :
$ cp sample.py / sample_copy.py
$ rm 파일명
예시 :
$ rm newfile.md
$ rm -rf 폴더명
예시 :
$ rm -rf temp
$ rm 파일명
예시 :
$ rm newfile.md
$ cat 파일명
예시 :
$ cat README.md
Bill Joy의 vi 확장판으로, CLI 기반의 텍스트 편집기이다.
01 일반모드(normal mode)
단축키 : (ESC)
02 편집모드(insert mode)
단축키 : (i)
03 블록설정(visual mode)
단축키 : (v)
04 액션모드(command-line mode)
단축키 : (:)
h j k l - left, down, up, right
i - insert mode
v - visual mode
ESC - back to normal mode
d - delete
dd - delete a line
y - yank
yy - yank a line
p - paste
u - undo
a - append
A - append from end of line
o - open line(under)
O - open line(upper)
H - move to the top of the screen
L - move to the bottom of the screen
:q - quit
:q! - override and quit
:w - write
:wq - write and quit
:{num} - Go to {num}th line
분산형 버전관리 시스템
Tip! : 수정은 되도록이면 push 하기전에 할것!,
pull 한뒤는 건드리지 않는게 좋다
# 개행문자 설정 (Window=true, Mac=input)
$ git config --global core.autocrlf true
# 이름 설정
$ git config --global user.name 사용자명
# 이메일 설정
$ git config --global user.email 사용자이메일주소
# 텍스트 에디터툴 설정
$ git config --global core.editor 'vim'
# 텍스트 확인용툴 설정
$ git config --global core.pager 'cat'
순서 | 내용 | 콘솔 명령어 |
---|---|---|
1 | 깃 레포지토리 [생성] | None |
2 | 깃 레포지토리 [클론] | $ git clone 주소 |
3 | .gitignore 생성및설정 | https://www.toptal.com/developers/gitignore/ |
4 | pre-commit 설정 | (https://pre-commit.com/) |
5 | 파일생성[blob] | $ touch 파일명 |
6 | 파일 로컬등록[tree] | $ git add 파일명 |
7 | 파일커밋창 열기(vim) | $ git commit |
8 | vim에서 커밋내역작성 | i편집-> ESC-> : wq로 저장 |
9 | 원격 레포지토리에 [업로드] | $ git push origin 브랜치명 |
각 단위 작업마다 4~6번 반복
원격 업로드시 7번수행
🚥차이점은 형광펜 표시함
순서 | 내용 | 콘솔 명령어 |
---|---|---|
1 | 깃 레포지토리 [생성] | None |
2 | 깃 레포지토리 [클론] | $ git clone 주소 |
3 | .gitignore 생성및설정 | https://www.toptal.com/developers/gitignore/ |
4 | pre-commit 설정 | (https://pre-commit.com/) |
5 | 파일생성 | New-Item ./파일명 |
6 | 파일 로컬등록[tree] | $ git add 파일명 |
7 | 파일커밋창 열기(vim) | $ git commit |
8 | vsCode에서 커밋내역작성 | None |
9 | 원격 레포지토리에 [업로드] | $ git push origin 브랜치명 |
각 단위 작업마다 4~6번 반복
원격 업로드시 7번수행
🚥차이점은 형광펜 표시함
{type} : 설명 작업단위 축약
fix!: resolve issue with login page
{body} : 작업 상세 기술
This commit fixes an issue with the login page that prevented users from logging in.
{footer} 부가정보
BREAKING CHANGE: since current version, drop social login support
🟥 feat: 기능 개발 관련
🟧 fix: 오류 개선 혹은 버그 패치
🟨 docs: 문서화 작업
🟩 test: test 관련
🟦 conf: 환경설정 관련
🟪 build: 빌드 작업 관련
⬜ style: 코드 포매팅 관련
commit 수행 전 체크해야 할 것들을 자동 수행하도록 도와주는 도구
URL : https://pre-commit.com/
1 pre-commit설치(전체 라이브러리에)
2 버전확인
3 .pre-commit-config.yaml 생성
4 pre-commit 설치(현재프로젝트에)
5 pre-commit 실행
# 코드
$ pip install pre-commit (or $ pip3 install pre-commit)
$ pre-commit --version
$ touch .pre-commit-config.yaml
# after setting configuration
$ pre-commit install
$ pre-commit run --all-files
분기점을 생성하여 독립적으로 코드를 변경할 수 있도록
도와주는 모델