Wrote save and git commit functions