Deleted files in git repo still present in bitbuck

2019-09-06 05:14发布

问题:

I had a git repo in Bitbucket. I had cloned that repo inmy local machine using git clone command. All the files were synced in my local machine. I did some changes in that repo like deleted some files, renamed some file using

git rm -rm /directory
git rm /file name
git mv filename changedfilename

and push the changes using

git push -u origin master

After this all the newly added file and renamed files were displayed in the Bitbucket account but old one were also present which I had deleted locally. I had looked at the previous similar questions but hadn't got any satisfactory answer.

Can anyone tell me what mistake I am doing?

标签: git bitbucket