cookiecutter-amu-thesis/hooks/post_gen_project.sh

11 lines
358 B
Bash
Raw Normal View History

2019-12-02 18:02:20 +01:00
#!/bin/bash -xe
if [ -e .git ]; then
git checkout README.md main.tex abstract.tex preamble.tex appendix.tex metadata.tex bibliography.bib helpers/vars
else
git init
git add --all
git commit -m 'init'
git remote add origin git@git.wmi.amu.edu.pl:{{cookiecutter.amu_id}}/{{cookiecutter.thesis_type}}-{{cookiecutter.thesis_surname}}.git
fi