[코드스테이츠 Day 9] Git과 Git Workflow

Strawberry Oolong Tea·2021년 9월 2일
0

TODAY I LEARNED

목록 보기
18/51
post-thumbnail

Git Terms List

  • Git repository
    • Remote repository
    • Local repository
  • Contributor
  • Fork
  • Clone
  • Push
  • Pull
  • Work space
    • Untracked file
  • Staging area
    • Staged file
    • Modified file
    • Unmodified file
  • PR (Pull request)
  • Auto merge
  • Merge conflict

Command List

  • git clone <repository>
  • git status
  • git add <file> / git add . / git add *
  • git restore <file> (discard changes)
  • git commit -m 'messages' / git commit (open text editor ex.nano)
  • git reset HEAD^ / git reset HEAD~1
    • hard
    • soft
  • git push <origin> <branch>
  • git log
  • git init
  • git remote add <origin> <repository>
    • git remote -v
  • git pull <shortname(=origin, pair)> <branch>

Git Workflow

Fork ➡️ clone ➡️ add remote pair repo ➡️ commit ➡️ push remote origin repo ➡️ pull remote pair repo ➡️ commit ➡️ push remote origin repo

profile
Der Vogel kämpft sich aus dem Ei 🥚🐣 목표를 위해 끊임없이 자신의 세계를 깨뜨릴 수 있는 용감한 개발자가 되고 싶습니다.

0개의 댓글