General
PromptBeginner5 minmarkdown
<h1 align="center">
<a href="https://prompts.chat">
120
Loading actions...
<a href="https://prompts.chat">
TypeScript and ESLint rules that MUST be followed when creating, modifying, or reviewing any file under apps/frontend/, including .ts, .tsx, .js, and .jsx files. Also apply when discussing frontend linting, type safety, or ESLint configuration.
risks
개발자가 오픈소스를 읽는 방법.
nl 명령은 파일의 line number 명시 (순위표시용으로 사용)
$ git shortlog -sn | nl
$ git shortlog -sn -- [폴더명]
$ git shortlog -s
$ git shortlog -n
따라서 위의 s, n을 붙여서 git shortlog -sn 이라고 옵션을 붙여주는 것임.
$ git log --oneline | wc -l
여기서 wc -l 명령은 (파일) 라인수 갯수 측정.
$ git log --oneline
$ git show [commitId]
# 무슨 파일을 수정했는지 나옴.
$ git show [commitId] | grep "diff --git"
or
# 몇개의 파일을 숫자만 나옴.
$ git show [commitId] | grep "diff --git" | wc -l
📌 커밋에 대해서.
📌 머지 커밋이란?
Merge pull request #263 from gentlelinuxer/test$ git log --oneline --no-merges
$ git shortlog --no-merges -sn 즉, 이걸 하면, 커밋 등수를 껍데기 제외하고 볼 수 있다.참고로 git 명령어에서 | head -[숫자] 라고 마지막에 붙여주면 숫자 라인만큼만 보여줌. 생략해서 보고 싶을 때 사용한다.
$ git log -p
$ git log --oneline -- [폴더명]
$ git log --oneline --after=[YYYY-MM-dd] --before=[YYYY-MM-dd]
여기서 after, before은 inclusive 다. 즉 미만 초과가 아니라 이상 이하다.
$ git log --oneline --after=2020-01-01 --before=2020-06-30 --no-merges -- mnist
📌 위 명령어는 최신 것부터임. 옛날 것부터 보고 싶으면?
📌 커밋 메세지를 넣는 것이 굉장히 중요하다.