My personal supplements to tj/git-extras.
git nuke
Removes the current git repository, optionally replacing it with a new one or removing the contents of the working directory.
- Download the latest source tarball:
wget https://github.com/haximilian/haximilian-git-extras/releases/download/v1.0.0.0/haximilian-git-extras.1.0.0.0.tar.gz
- Unpack the source code:
tar xzvf haximilian-git-extras.*.tar.gz
- Remove the archive & enter the source directory:
rm haximilian-get-extrax.*.tar.gz; cd haximilian-get-extras-*/build
- Configure the build environment:
../configure
- Run the build script:
make
- Make sure everything works the way it's supposed to:
make check
- (optional) Install the package:
sudo make install
- (optional) Check that the installation was successful:
make installcheck
- Clone the latest version of the repository into the current directory:
git clone https://github.com/haximilian/haximilian-git-extras.git
- Enter the working directory:
cd haximilian-git-extras
- (optional) Make whatever changes you like.
- (optional) Commit your changes:
git add *; git commit
- (optional) After making your changes, prepare a new release version:
git tag -a "v1.0.0-LOCAL_BUILD.0" -m "In-House release, version 0"
- Bootstrap the autotools build environment:
./bootstrap.sh
- Enter the build directory:
cd build
- Configure the build environment:
../configure
- Run the build script:
make
- Make sure everything works the way it's supposed to:
make check
- (optional) Install the package:
sudo make install
- (optional) Check that the installation was successful:
make installcheck
Copyright © 2019 Haximilian
This project is licensed under the Apache License, Version 2.0 (Apache-2.0).
For a complete copy of the license, please see the included "LICENSE" file.
- The file "/build-aux/git-version-gen" is a helper script from Free Software Foundation, Inc and is licensed under the GPLv3+ software license.