3
0
mirror of https://github.com/triqs/dft_tools synced 2025-01-03 10:05:49 +01:00
dft_tools/share/squash_history.sh
Nils Wentzell 79789512bf Squash app4triqs/3.3.x to reduce skeleton history when tracking
Co-authored-by: Dylan Simon <dylan@dylex.net>
Co-authored-by: Alexander Hampel <ahampel@flatironinstitute.org>
2024-05-31 17:29:52 -04:00

7 lines
322 B
Bash
Executable File

#!/usr/bin/env bash
git reset $(git commit-tree HEAD\^{tree} -m "Initialize project from github.com/triqs/app4triqs@$(git rev-parse --short HEAD)")
git merge --allow-unrelated-histories -s ours HEAD@{1} -m "Track app4triqs skeleton"
git remote rm origin
git remote add app4triqs_remote https://github.com/triqs/app4triqs