I'm writing AWS lambda's in the browser and want to improve my version control process from the present setup, which is to copy paste the lambda code into a text file and manually commit to a repository. 

Is there a better (and preferably straight-forward) way of using AWS lambda with version control (in my case git/github)?