Skip to content
Snippets Groups Projects
Commit 34ee0464 authored by nimrod's avatar nimrod
Browse files

Some git scripts work.

- git skel alias. Maintain a skeleton directory and the alias copies
  them over and adds them. For now, Markdown and reStructuredText README
files, a .gitignore and a starting VERSION file.
- Nicer commit messages with git-bump.
- git-license to generate a LICENSE.txt file and add it.
parent df596040
No related branches found
No related tags found
No related merge requests found
../ignore
\ No newline at end of file
# PROJECT_NAME
## License
This software is licensed under the MIT license (see `LICENSE.txt`).
## Author Information
Nimrod Adar, [contact me](mailto:nimrod@shore.co.il) or visit my
[website](https://www.shore.co.il/). Patches are welcome via
[`git send-email`](http://git-scm.com/book/en/v2/Git-Commands-Email). The repository
is located at: <https://git.shore.co.il/explore/>.
PROJECT_NAME
############
License
-------
This software is licensed under the AGPL 3+ license (see the :code:`LICENSE.txt`
file).
Author
------
Nimrod Adar, `contact me <nimrod@shore.co.il>`_ or visit my `website
<https://www.shore.co.il/>`_. Patches are welcome via `git send-email
<http://git-scm.com/book/en/v2/Git-Commands-Email>`_. The repository is located
at: https://git.shore.co.il/nimrod/.
0.1.0
#!/bin/sh #!/bin/sh
set -eu set -eu
OLD_VERSION="$(cat VERSION)"
semver-bump "$1-release" semver-bump "$1-release"
NEW_VERSION="$(cat VERSION)"
git commit VERSION -m "Bumped $1 version." git commit VERSION -m "Bumped $1 version."
git commit --only VERSION --message "Bump version: $OLD_VERSION$NEW_VERSION"
git tag-version git tag-version
git push --follow-tags git push --follow-tags
#!/bin/sh
set -eu
license "$@" > LICENSE.txt
git add LICENSE.txt
#!/bin/sh
set -eu
for i in "$@"
do
cp --dereference --target-directory=./ "$HOME/.config/git/skel/$i"
done
git add "$@"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment