Replace all files in git repo with the files that are on local machine
I want my git repository to look exactly like I have it locally.
As in if I have A,B,C,D and E files in my git repository and on my local machine I have deleted A,B and C, leaving D and E. When I push I want to see only D and E in the repository. how can I do this please. Also can I do the same with on heroku ?
One Solution collect form web for “Replace all files in git repo with the files that are on local machine”
Stage all changes, make a commit, and push.
git add -A git status git commit -m "Deleted A, B, C" git push