I created a git repo and commited files/folder, after some time a deleted a folder from my local git folder and in try to update the repo I run the commands -
git add .
git commit -m "second commit"
git remote add origin https://github.com/trialcode/test.git
git push -u origin master
But the removed folder is still shown there in my git repo although the files were updated. Let me know what I am doing wrong with the git files/folder update.
FYI - I tried git branch -d folder_to_remove/
but it is throwing an error - error: branch 'folder_to_remove/' not found
.