anjakammer
10/23/2016 - 9:07 PM

Removes Github/Git history from https://hellocoding.wordpress.com/2015/01/19/delete-all-commit-history-github/

$ cd myproject

$ sudo rm -rf .git
# And delete the ‘.git folder’ with this command.

$ git init
# Now, let us re-initialize the repository.
 
$ git remote add origin https://github.com/acsudeep/myproject.git
# add remote url
 
$ git remote -v
# verify

# Next, let us add all our files and commit the changes.

$ git add --all
$ git commit -am 'initial commit'
#Now, since we just have one commit i.e ‘initial commit’. Let us force push update to our master branch of our project repository.

$ git push -f origin master