03.15

H N·2022년 3월 15일

velog 첫글 작성, git 복습

  • Git 명령어
    • git status : stage, unstage인지 git 상태 확인
    • git log : git commit log 확인
    • git diff : commit 된 파일과 unstage 파일 비교
    • git diff --staged : commit 된 파일과 add된 stage 파일 비교
      • diff 단축키(F : 앞으로, B : 뒤로, Q : 마지막페이지에서 종료)
    • git commit --ammend : commit에 누락한 파일이 있을경우 추가로 commit(덮어쓰기?)
      • ammend 이후 commit 번호가 동일하지 않아 push가 되지 않을 경우 git push -f
  • Git Merge 순서
    1. develop 브랜치로 이동(checkout develop)
    2. 원격 develop 브랜치의 변경사항을 로컬로 가져오기(git pull)
    3. 기존의 작업 브랜치로 이동(checkout XXX)
    4. develop 브랜치와 병합
  • 협업을 위해 원할한 git을 사용하고자 git flow 설치 후 feature 브랜치 생성
profile
Flutter dev

0개의 댓글