Skip to content

Riverstone00/git-practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

farm_assignment

week5

자기소개

허강석입니다

관심분야

-Security -DB

Git 명령어 정리

  • git init: 로컬 디렉터리를 repository 취급
  • git status: 현재 커밋 상태. 원격 저장소 상태 확인
  • git add: 파일을 커밋 대기 상태에 추가
  • git commit: 수정 사항을 커밋
  • git log: 커밋을 추적
  • git branch: 브랜치 생성
  • git switch 또는 git checkout: 다른 브랜치로 이동
  • git remote: 로컬을 원격 저장소에 연결/연결 해체
  • git push: 커밋을 원격 저장소에 반영

CLI 실습 기록

  • 사용한 명령어 순서: gh create repo / vi README.md /git add . / git commit -m / git push origin main / git checkout -b new_branch / git add . / git commit -m / git push origin main / gh pr create --base master --head feat/login --title "새 브랜치 체크아웃" --body "체크아웃 후 merge"
  • 생성한 브랜치명: new_branch
  • 커밋 메시지 3개: Initial commit / "자기소개/관심분야" / "명령어 정리 기입" / ...
  • 어려웠던 점: git bash에서 github CLI가 정상작동하지 않아서 한참 헤맸습니다...

About

week5

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors