Reputation: 3276
I've removed some stuff (including directories and files) in my local branch.
When I commit, it says:
mauricio@mauricio-ubuntu:/var/www/moke$ git commit -m "Better implementation"
[ajax_branch 1a407ad] Better implementation
56 files changed, 23465 insertions(+), 8 deletions(-)
Then I push:
mauricio@mauricio-ubuntu:/var/www/moke$ git push origin ajax_branch
Counting objects: 25, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (18/18), done.
Writing objects: 100% (18/18), 7.97 KiB, done.
Total 18 (delta 6), reused 0 (delta 0)
To [email protected]:giordanoapps/moke.git
17f53bb..1a407ad ajax_branch -> ajax_branch
But the files I've deleted in my local branch keeps in remote branch.
What am I doing wrong?
Upvotes: 2
Views: 1412
Reputation: 11343
You can use git rm folder/filename.ext
to better effect.
Then when you push to the remote folder, the changes will be recorded.
Upvotes: 2