git
-
git branchgit 2024. 4. 23. 09:00
title: (TIL-3) Git Branch date: 2024-04-22 10:09:05 tags: git branch 현 로컬 저장소(local repository)의 모든 branch 목록 확인 git branch -r 현 로컬 저장소(local repository)와 연결된 원격 저장소(remote repository)의 모든 branch 목록 확인 로컬 저장소의 브랜치가 아니라 원격 저장소의 브랜치 목록이란 점 주의! git branch -a local과 remote branch 목록 모두 확인 git remote -v 현 로컬 저장소에 연결된 모든 원격 저장소의 목록을 보여줌 v=(verbose) 각 원격 저장소의 이름(보통 origin)과 해당 원격 저장소의 url을 보여줌 git bran..
-
간단한 mark down 문법 사용예git 2024. 4. 21. 15:45
hexo 블로그 시작했는데 일단 vim을 이용해서 문서편집을 하다보니 내가 타이핑 한 mark down이 제대로 동작 중인지 확인이 불가능해서 불편한 면이 있다. VSCode로 하면 자동으로 확인도 가능하던데 다음엔 vscode로 해봐야지. 아래 스샷은 wsl에서 vim으로 작성한 간단한 markdown 문법들임. 실행 결과는 https://mumng.github.io/#Markdown-%EB%AC%B8%EB%B2%95-%ED%95%99%EC%8A%B5-2024-04-21-sun
-
conventional commitsgit 2024. 4. 20. 17:28
Conventional Commits 커밋 메시지는 다음과 같은 구조가 되어야 한다. [적용 범위(선택 사항)]: [본문(선택 사항)] [꼬리말(선택 사항)] 1. commit의 제목은 commit을 설명하는 문장형이 아닌 구나 절의 형태로 작성 2. importance of capitalize -> Importance of Capitalize' 3. prefix 꼭 달기 -> 위의 구조에서 에 해당(breaking change가 있다면 type뒤어 !) - feat: (feature) 기능개발 관련 - build: 빌드 작업 관련 - fix: 오류 개선 혹은 버그 패치 - docs: 문서화 작업 - test: test 관련 - conf: 환경설정 관련 - ci: continuous Integration..
-
wsl + github 사용하기 1git 2024. 4. 20. 17:06
wsl에서 git을 이용해서 외부 저장소인 github을 사용하는 방법. - git은 wsl에 포함된 패키지 이므로 따로 설치할 필요 없음. 1. github.com가입 2. new repository -> create repository 3. 위에서 생성된 repository에 들어가서 (https://github.com/{유저네임}/{생성된 repository}) clone을 위한 url (https://github.com/{유저네임}/{생성된 repository}.git) 복사하기 4. wsl에서 git clone {위에서 복사한 url} 엔터 5. 이렇게 하면 github에서 생성한 repository가 현재 디렉토리에 새 프로젝트 폴더로 생성된 것을 확인할 수 있다. 이제 저 프로젝트 폴더에서 ..
-
WSL ubuntu에서 git 사용하기git 2024. 4. 19. 15:06
WSL에 들어가서 바로 아래처럼 치면 됩니다. mumng@DESKTOP-I4HASES:~/documents/dev$ git config --global user.name "mumng" mumng@DESKTOP-I4HASES:~/documents/dev$ git config --global user.email "mumng713@gmail.com" mumng@DESKTOP-I4HASES:~/documents/dev$ git config --global core.editor "vim" mumng@DESKTOP-I4HASES:~/documents/dev$ git config --global core.pager "cat" mumng@DESKTOP-I4HASES:~/documents/dev$ git config -..
-
conventional commit summarygit 2024. 4. 19. 14:27
https://www.conventionalcommits.org/en/v1.0.0/#summary Conventional Commits 1.0.0 Summary The Conventional Commits specification is a lightweight convention on top of commit messages. It provides an easy set of rules for creating an explicit commit history; which makes it easier to write automated tools on top of. This convention dovetails with SemVer, by describing the features, fixes, and brea..
-
git 기본 명령어 - 파일 다루기git 2024. 4. 18. 11:28
기본 명령어(파일 다루기) 파일 보기 ls: list ls -l: long list ls -al: all + long (히든파일, 예: .abc.txt와 같이 점으로 시작하는 파일은 -a 옵션을 사용해야 보임) ls -a: all lls *.txt: 확장자가 txt인 파일 파일 내용 보기 cat more less 파일 조작 cp: 파일 복사 mv: 파일 이동 ln: 파일 숏컷 (심볼릭 링크) file: 파일 속성 보기 디렉토리 관리 mkdir: 디렉토리 만들기 rmdir: 빈 디렉토리 삭제 cd, cd -: 디렉토리 이동 ./../~: 디렉토리 구조 기타 명령어 clear: 터미널 지우기 reboot, poweroff, shutdown: 시스템 종료 파일 만들기 touch [option] [file]: ..