github - Git push from fork to specific remote branch? -



github - Git push from fork to specific remote branch? -

still git noobie, been using basic commands commit, push, pull.

i taking forked project , pushing private repo, creating remote within forked repo

git remote add together mysite https://github.com/siterepo/site.git

then upon changes force private repo.

git force -u mysite master

my question first logical, should skip using forked version since google web starter kit , there brilliant guys wont need contributions.

so should clone web starter kit own repo customize @ will? still able merge updates way if how?

okay suppose should follow said above useless, in case logic came googlemaster > myfork > mymaster how force specific branch, said used

git force -u mysite master

but

git force -u mysite testbranch

does not work.

the reason want own repo can force own versions, have own branches , abstract initial project while still beingness able merge when create drastic or improve performance etc updates.

my question first logical, should skip using forked version since google web starter kit , there brilliant guys wont need contributions.

you don't have fork (clone on server) if don't plan contribute back. can clone it, alter remote named 'origin' url:

git remote set-url origin https://github.com/siterepo/site.git

and can start pushing private repo.

will still able merge updates way if how?

you still can add together sec remote, referencing original repo, if want maintain eye on it:

git remote add together upstream /url/of/first/repo

this should work:

git force -u mysite master:testbranch

or:

git checkout -b testbranch git force -u mysite testbranch

git github

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -