Github - merging fork into master (locally) -
so have following problem: when started programming, forked repository (using github windows) browser-game. time now, made stuff, did git commit , issued pull request using webpage. original author did authorize pull request , changes went live. recently, have become "official" author on original repository.
so dont want work on "fork" longer instead dev on original. using github windows, decided "clone" original repo. github shows forked (ancientsion/fieryvoid) repository , original (aatu/fieryvoid).
now somehow "merge" forked repo local clone of original repo , there commit master repo directly, way deploying local, not yet commited changes fork live version while @ same time getting rid of fork repository.
however, have no idea if works , if does, how. can please advise ?
i don't think github windows interface supports this, can done via git bash console. untested, steps ought correct, since i've done similar (identical, in fact) before. assumes clone, ancientsion/fieryvoid
, up-to-date aatu/fieryvoid
, can done pull followed merge, or, avoid merge commits, git pull --rebase
. have ancientsion/fieryvoid
, aatu/fieryvoid
, both present locally, ancientsion/fieryvoid
ahead of aatu/fieryvoid
few commits. need pull in commits aatu/fieryvoid
running following:
cd path/to/local/clone/of/aatu/fieryvoid git remote add local_pull path/to/local/clone/of/ancientsion/fieryvoid git pull local_pull master git push origin master
couple of assumptions:
- you working on
master
branch ofancientsion/fieryvoid
. if not, replacemaster
in line 3 branch name. origin
remote tracks online repoaatu/fieryvoid
Comments
Post a Comment