I need some help.. how can I update git repository in remote after doing this cleanup?
In local my
git gc --aggressive --prune
git gc command performs garbage collection on the local repository only. This is not something you can push to a remote.
If you are in control of the remote, you can perform a garbage collection on it as well. How exactly to do that really depends on the software you are using (e.g. gitolite, Gitlab, Bitbucket...)
If you are using a service such as Github, they take care of this automatically themselves, you don't need to do anything.