git - Which is the right way to duplicate a repository and get rid of any dependency with it's parent? -
i need duplicate repository without forking since not make pr parent repository. have found this docs github , follow steps in there.
the original repository docker-nginx-php , have created duplicated in account under another-lamp-docker
what expect see duplicate of repository without reference previous commits, contributors, authors, etc , yes, not stolen work, people know on readme
new work based on original repository.
as result seeing following behavior:
- the image below shown main screen of duplicated repository:
- the image below shown branches tab, showing 4 branch original repository showing kind of dependencies.
- even on contributors tab seeing old owners
- is expected behavior duplicating repository?
- can rid of history (i believe it's) information?
- if how?
if want remove past history:
- clone repository.
- remove
.git
directory (rm -rf .git
) - initialize new git repository (
git init
) - commit files (
git add .; git commit -m 'initial commit'
) - create target repository on github
- configure github repository remote (
git remote add origin git@github.com:...
) - push local repository github (
git push -u origin master
)
now have files original repository without of history.
while work, think bad idea. if you're going fork existing project, why not via existing "fork" mechanism? trying avoid eliminating contribution history of existing project? make more difficult merge changes , bug fixes original repository (and of course make more difficult contribute changes if fix might of general interest).
Comments
Post a Comment