git - How can I fork my own GitHub repository? -
so, total newbie git. been reading through guides , think have basics having difficulties accomplishing 1 goal.
i have repo created generic markup source code. stuff reuse every breakout. it's called markupdna.git
i have different directories in mac sites dir ~/sites/project-n
. build upon generic stuff , breakout of site. these tied main git repo forks, cannot fork own repo?
i wish this:
git clone <url> name git add . # make changes git commit -m 'whatever' git push
but don't want push origin. want push fork of markupdna
repo whence cloned. seems pushes changes right origin master. idea keep markupdna
clean , have lot of forks different projects, each of have own cloned dir on hard drive.
any ideas?
it lot easier use branches, rather using separate forks. can still have separate checkouts each branch; clone repo multiple times, , use git checkout
in each 1 switch appropriate branch (or git checkout -b
create branch , check out @ once). once have created branches, can push them github using git push origin <branchname>
.
Comments
Post a Comment