git branch d1 //d1브랜치 생성
git checkout d1 //d1으로 이동
여기서 작업하면됨
git add .
git commit -m ""
git checkout master //master로 이동
git merge d1 //d1이랑 합병
git log 해보면 마지막 commit이름 확인할 수 있음.
git push origin master
git branch -D d1 //d1브랜치 삭제
내가 pulll 이나 clone 해서 작업하고 push하기전에 동료가 또 push 하면 나는 또 pull한 다음에 git add. 하고 git commit -m "" 하고 push 해야함~!
'Git' 카테고리의 다른 글
git 에 README에 사진올릴 때 (0) | 2020.08.04 |
---|---|
금방 push한 commit 취소 (0) | 2020.07.31 |
How to logout from git in windows (0) | 2020.07.18 |
GIT commit 되돌리기 (0) | 2020.07.03 |
GitHub 커밋할 때 나오는 username 설정하기, 확인하기 (0) | 2020.06.30 |