feat  :  새로운 기능 추가

 fix   : 버그수정

docs   : 문서수정

 style  : 코드 포맷팅, 세미콜론 누락, 코드 변경이 없는 경우

 refactor   : 코드 리팩토링

 test  : 테스트 코드, 리펙토링 테스트 코드 추가

 chore  :  빌드 업무 수정, 패키지 매니저 수정

 

ex) feat: 로그인 기능 추가

 

참고사이트

https://www.conventionalcommits.org/en/v1.0.0/

 

Conventional Commits

A specification for adding human and machine readable meaning to commit messages

www.conventionalcommits.org

https://velog.io/@outstandingboy/Git-%EC%BB%A4%EB%B0%8B-%EB%A9%94%EC%8B%9C%EC%A7%80-%EA%B7%9C%EC%95%BD-%EC%A0%95%EB%A6%AC-the-AngularJS-commit-conventions

 

'프로그래밍 > Git & GitHub' 카테고리의 다른 글

협업을 위한 깃 명령어: 브랜치  (0) 2023.11.30
git add  (0) 2023.07.30
Github로 버전 관리 할때 추천하는 방식  (0) 2023.07.21
.gitignore 작성  (0) 2023.07.18
git push 에러발생  (0) 2023.07.14

Repository Naming

▶ (만들고자하는 서비스/앱의 이름 혹은 목적, 공부하는 언어이름)-(backend-website/ frondend-website)

  • text-processor
  • blog-website
  • react-shopping-cart

 

명령어 사용할 때

git add  <파일명들> 전/후  ▶ git status 를 이용해서 무엇이 추가되었는지 혹은 추가가 필요한지 확인

git commit -m <message> 후 ▶  git log 로 메세지 내용확인 ( vim 이므로 나올때 q 입력)

git remote ... 후  ▶ git remote -v 로 remote 주소 확인 

'프로그래밍 > Git & GitHub' 카테고리의 다른 글

git add  (0) 2023.07.30
git Commit Convention  (0) 2023.07.22
.gitignore 작성  (0) 2023.07.18
git push 에러발생  (0) 2023.07.14
git repository 이름 바꾼 후 문제  (0) 2023.07.14

f = open("filename.json")
data = json.load(f)

로 읽으면  → JSONDecodeError: Extra data: line 2 column 1 (char 1281) 발생

 

jsonList = []
with open("filename.json", "r") as f :
	for i in f:
    		jsonList.append(json.loads(i)) // i가 텍스트 형식이므로 loads 사용

 

'프로그래밍 > Python' 카테고리의 다른 글

파이썬에 설치된 라이브러리 추출하기  (0) 2023.07.15

작성하는 이유?

  • 로그 파일, 빌드 결과 파일등 직접 수정할 필요 없고 버전관리에  불필요한 파일 업로드 방지

자동생성 사이트 

  • 사용하는 IDE, 언어 입력하면 자동으로 생성

https://www.toptal.com/developers/gitignore

 

gitignore.io

Create useful .gitignore files for your project

www.toptal.com

설정 방법

    •  # : 주석
    • *.log : 확장자가 .log 로 끝나는 모든 파일을 무시
    • 폴더이름/ : 폴더 이름안에 있는 모든 파일을 무시
    • /파일이름 : 현재 폴더에 있는 특정 파일 무시
    • 무엇을 해야 할지 모르면 https://github.com/github/gitignore 참고

추가 방법

  • 최상위 폴더에 위치시키기
  • 이미 추가한 파일을 무시하고 싶으면,  .gitignore을 커밋하기전에 추가된 파일의 추적을 해제필요
git rm --cached <file name or .(all)>

---> git add . 를 하고나서 내가 원하지 않는 파일 혹은 폴더가 추가 되었다면

git rm --cached -r 파일명 혹은 폴더명
  •  -r  :  재귀적 제거를 허용합니다 

 

 

참고한 곳

https://www.git-scm.com/book/en/v2/Git-Basics-Recording-Changes-to-the-Repository

https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files

 

pip freeze > requirements.txt

@file:// -> 배포시 오류발생 일으킬 수 있음

pip list --format=freeze > requirements.txt

@ file://..... 사라짐

'프로그래밍 > Python' 카테고리의 다른 글

한 파일에 있는 여러개의 Json 파일 읽기  (0) 2023.07.21

+ Recent posts