Programming2016. 3. 8. 02:49


---------------

FORK a project from GITHUB

git clone MY_GITHUB_PROJECT  [FOLDER]

#update master

git pull origin master

git checkout -b BRANCH

#edit changes

git push orgin master


---------------

git clone MY_GITHUB_PROJECT 

git remote add upstream GITHUB_PROJECT 

#check remote, origin is mine, upstream is original

git remote -v


#sync, git pull = fetch + merge

git fetch upstream


#swich to my master

git checkout master

git merge upstream/master

---------------

git checkout master

git pull GITHUB_PROJECT  BRANCH_NAME

#resolve merge conflict if required

git push origin master


---------------

git clone GITHUB_PROJECT [FOLDER]

cd FOLDER

git pull

git checkout origin/msm-3.18_rc3 -b MY_BRANCH

# Setup a remote to your fork

git remote add fork MY_GITHUB_PROJECT 

git remote update fork


---------------

---------------

PULL Request


---------------

https://git-scm.com/docs/git-pull



'Programming' 카테고리의 다른 글

Raspberry Pi Supercomputer  (0) 2016.03.14
Windows Phone 7 Development Internals  (0) 2016.03.13
Windows Phone 8 App 개발  (0) 2016.03.04
Windows Mobile 7 phone 구입  (0) 2016.02.28
Cynogenmod project 받아 빌드하기  (0) 2016.02.28
Posted by 쁘레드