Skip to content

250522 과제 - 프로젝트 생성 및 CLI를 통한 GitHub 업로드

Notifications You must be signed in to change notification settings

skyunlee98/git-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

프로그래머스 웹 프론트엔드 5기 과제

2025.05.22 프로젝트 생성 및 CLI를 통한 GitHub 업로드


[git & github 사용하기]

  • 초기화
git init
  • 상태 확인
git status
  • 스테이징
git add [파일명]
git add . # 전체 파일
  • 커밋
git commit -m '메시지'
git commit -am '메시지' # add + commit
  • 브랜치 생성
git branch [브랜치명]
  • 브랜치 전환
git checkout [브랜치명]
git checkout -b [브랜치명] # 브랜치 생성 및 전환

git switch -c [브랜치명] # 브랜치 생성 및 전환

#checkout은 브랜치 전환뿐 아니라 파일 복원 등 여러 기능을 한꺼번에 처리하는 명령어
  • 브랜치 병합
git merge [브랜치명] # 병합할 브랜치 명
  • 브랜치 삭제
git branch -D [브랜치명]
  • 커밋 로그
git log
git log --oneline # 한 줄 요약
  • 리셋
git reset --soft [커밋해시] # 작업 내용 유지
git reset --hard [커밋해시] # 작업 내용 삭제

About

250522 과제 - 프로젝트 생성 및 CLI를 통한 GitHub 업로드

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published