Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-practice

let's practice git flow

  1. clone repository

    git clone https://github.com/teamPotz/git-practice
  2. change branch to develop

    git switch develop
  3. issue 만들기 practice project

  4. issue에서 branch 만들기

    git fetch origin
    git checkout feature/test
  5. 작업 후 commit, push

    git add .
    git commit -m "A 기능 개발"
    git push
  6. Pull Request 하기

    • develop 브랜치로 개발한 브랜치를 pull request를 한다
  7. Merge

    • 팀원 코드 리뷰 후 merge
  8. merge 완료 후 로컬에 남아있는 branch 삭제

    git branch -D feature/test

참고: 깃허브로 그룹프로젝트 하는 법

git conflict를 피하는 방법

  • 가급적 다른 파일에서 작업한다
    • 같은 파일내에서 같은 줄을 변경하면 충돌이 일어난다
  • 커밋을 최대한 자주한다
  • merge를 자주한다
  • develop 브랜치 pull을 자주한다

참고: 깃 머지 하다 충돌이 났니? 깃 충돌 해결법 알려줄게! 깃 충돌을 피하는 4가지 TIP 까지!

About

let's practice git flow

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages