10/23/2016 - 9:07 PM

Removes Github/Git history from

$ 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
# 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