Mi Lugarcito

GIT - 협업 프로젝트 진행하기 본문

GIT

GIT - 협업 프로젝트 진행하기

selene park 2021. 5. 27. 11:36

git clone/ git pull 차이점

(최초 다운로드 할때는 clone 하고 그 이후 수정/추가 작업할때는 pull 해서 사용)

 

https://meaownworld.tistory.com/157

 

git에서 clone과 pull의 차이점

git을 처음 공부할 떄 clone을 많이 사용합니다. 조금 더 공부를 하다보면 git pull을 배울텐데 그럼 자연스레 "git clnoe과 pull의 차이는 뭐지?" 라는 의문을 갖게 될겁니다 결론부터 말하자면 둘의 차

meaownworld.tistory.com

https://balsamic-egg.tistory.com/11

 

git clone 과 git pull 의 차이점

처음에는 clone을 배우다가 나중에는 pull을 배우게 됩니다. 그러다 보면 비슷하게 보이기 때문에 "git clone 과 git pull의 차이점이 뭘까?"라는 의문을 갖게 됩니다. 결론부터 말해드리게습니다. pull >

balsamic-egg.tistory.com

https://velog.io/@radical_sign/git-pull-%EC%98%A4%EB%A5%98master-main

 

git pull 오류(master -> main)

깃허브의 master 브랜치가 main으로 이름이 바뀌었습니다. 계속 master로 썼다보니 이 내용을 떠올리는데 한참 걸리네요.

velog.io

 

 

 

https://www.zerocho.com/category/Git/post/581042fdcae2d100152ceae6

 

(Git) Github 사용하기, remote, clone, push, pull

안녕하세요. 이번 시간에는 지난 번의 commit을 바탕으로 Github를 사용해보겠습니다! 우선 깃허브를 사용하려면 회원가입부터 해야합니다. 링크 Sign up이 회원가입이고, Sign in이 로그인입니다. 무

www.zerocho.com

https://wayhome25.github.io/git/2017/07/08/git-first-pull-request-story/

 

git 초보를 위한 풀리퀘스트(pull request) 방법 · 초보몽키의 개발공부로그

개발을 하다 보면 코드를 여러 개로 복사해야 하는 일이 자주 생긴다. 코드를 통째로 복사하고 나서 원래 코드와는 상관없이 독립적으로 개발을 진행할 수 있는데, 이렇게 독립적으로 개발하는

wayhome25.github.io

 

 

 

 

최초 프로젝트 처음으로 git clone 하기 (pull 하지 않고 clone한다)

cd plugins // 깃허브 dynamic_factory git clone & composer dump 하기 (중요 코어 플러그인!)

cd plugins
git clone https://github.com/amuzcorp/dynamic_factory.git
composer dump

 

 

git clone시 중요 포인트!!!

git branch 중에서 main 말고 master branch 의 gitclone을 해야하는 경우

 

 

cd plugins

// 이렇게 하면 자동으로 default로 설정되어 있는 branch 의 깃 코드를 clone 해온다...조심!
// git clone https://github.com/amuzcorp/maemulmoa.git 

git clone -b master https://github.com/amuzcorp/maemulmoa.git
cd maemulmoa
composer dump

 

 

 

 

git repository에서 update된 것 pull 하기

//1. cd로 최상단 폴더가 아닌 풀하고 싶은 상단 폴더로 이동하기
//plugins 폴더에 있는 cd dynamic_factory 폴더로 이동하기
//2. git pull 하기 

 

 

 

 

 

git clone 후 수정/추가후 push 할 경우

 

https://ndb796.tistory.com/188

 

소스코드 수정하여 Git 저장소에 반영하기 [Git으로 시작하는 협업과 오픈소스 프로젝트 5강]

이번 시간에는 소스코드를 수정해서 Git 저장소에 반영하는 방법에 대해서 알아보도록 하겠습니다. 이전 강좌에서는 깃 허브(Git Hub)에서 하나의 저장소를 생성하여, 초기 프로젝트 구성을 올리

ndb796.tistory.com

 

https://chohyeonjunn.tistory.com/74

 

소스코드 수정 후 git 저장소에 반영하기

소스코드 수정 후 git 저장소에 반영하기 일반적으로 소스코드를 수정하는 것은 두 가지 사례로 나뉘게 됩니다. 해당 프로젝트에 소속된 사람이 아닌 경우 만약 우리가 특정한 커뮤니티(Community)

chohyeonjunn.tistory.com

git add .
git status
git commit -m "message"
git push -u origin main 혹은 git push -u origin master