How to keep edited plugins updated?

You should definitely use Version control systems like Git, SVN, Mercurial etc. It will cover all your needs and more.