update .gitignore and initialise init-repo