Wednesday, 15 July 2015

github - Delete all Git Commit History -



github - Delete all Git Commit History -

i trying fetch repo github, revert tag in past, force remote deleting history. can below except deleting commit logs. missing?

git clone https://github.com/user/user-repo.git cd user-repo git reset --hard tags/v2.0 git remote add together stash ssh://git@myserver:7999/myproject/user-repo.git git force --force stash master

i thought want repo new one, deleting .git/ directory , re-initing more simple.

git clone https://github.com/user/user-repo.git cd user-repo git reset --hard tags/v2.0 rm -rf .git/ git init git add together . git commit -m 'first commit' git remote add together stash ssh://git@myserver:7999/myproject/user-repo.git git force --force stash master

git github git-stash

No comments:

Post a Comment