We have a template project in our GitLab that contains all the code to quickly setup Java Back-End project.
For every new project one way is to fork the template, but if you want to start a fresh copy with no history, just do the following:
First create new project in GitLab, then run the following commands
git clone --depth=1 <git-server>/<template-project>.git <new-project-dir> cd <new-project-dir> rm -rf .git git init git remote add origin <git-server>/<new-project>.git git add -A git commit -m "Initial commit" git push origin HEAD
That's it!
Comments
Post a Comment