목록Front-End/git (4)
프론트엔드 개발
- remote 브랜치 삭제하는 방법 * 아래 명령어를 사용하면 local에 있는 branch가 아닌 remote에 있는 branch가 삭제된다는것을 잘 알고 사용해야 한다. git push origin --delete [branchName] [선택] remote에 있는 branch를 삭제하고 나서 local에도 있다면 삭제한다. - local 브랜치 삭제하는 방법 git branch -d [branchName] 강제로 제거해야한다면 git branch -D [branchName] 출처: https://www.lesstif.com/gitbook/git-delete-remote-branch-20776547.html https://backlog.com/git-tutorial/kr/stepup/stepup1_..
이번에 지라 처음 사용하면서 알아본 것 feature 브런치 feature/SCRUM-0000_whatEver 같이 설정 기존 commit 규칙: [SCRUM-0000] commit 내용 [SCRUM-0000]을 자동 반영하고 싶어서 알아본 것 Git hook Git Hook란 Git Hooks 는 Git과 관련한 어떤 이벤트가 발생했을 때 특정 스크립트를 실행할 수 있도록 하는 기능이다. 크게 클라이언트 훅 과 서버 훅 으로 나뉘는데 클라이언트 훅 은 커밋, Merge 가 발생하거나 push 가 발생하기 전 클라이언트에서 실행하는 훅이다. 반면 서버 훅 은 Git repository로 push 가 발생했을 때 서버에서 실행하는 훅이다. 설정 방법 프로젝트 내에 숨겨진 파일. git에 들어가면 hooks..
어느 때처럼 개발 후 git으로 github에 있는 repository에 push를 하려고 하였으나 아래와 같은 에러가 나타났다. 어느 사이트에서 좋은 자료가 있어, 내용을 공유하고자 한다. remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead. remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information. fatal: unable to access 'https://github.com/[..
next-iron-session을 공부하고 있는데, 하위 폴더 examples의 next-typescript 폴더만 clone하고 싶었어요. 이처럼 github에서 특정 폴더만 clone하고 싶어서 구글링을 하였습니다. 공부하는겸 공유하는겸 올렸어요 ~~~~ 출처는 마지막에 있습니다 ~ 1. git 연결 (1) 폴더만들기 mkdir next-typescript (2) 폴더로 이동 cd next-typescript (3) git init 하기 git init 2. git 저장소 연결 git remote add origin 저장소주소 git remote add origin https://github.com/vvo/next-iron-session.git 3. git sparse checkout 활성화 git ..