This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git log `git describe --abbrev=0`..HEAD --merges --oneline |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git log 2.0.0-alpha23...2.0.0-alpha24 --pretty=format:"(%h) %s" --reverse | grep -v Merge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- create a new empy repo, add the origin of the repo we want to move files, create new branch and fetch | |
mkdir new-repo | |
cd new-repo | |
git init | |
git remote add origin git@github.com:javierexposito/origin-repo.git | |
git commit --allow-empty "Initial commit" | |
git checkout moving-files | |
git fetch origin | |
git subtree add --prefix=new-folder f54a8b6d7 (last commit from repo) | |
git push origin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# git-mv-with-history -- move/rename file or folder, with history. | |
# | |
# Moving a file in git doesn't track history, so the purpose of this | |
# utility is best explained from the kernel wiki: | |
# | |
# Git has a rename command git mv, but that is just for convenience. | |
# The effect is indistinguishable from removing the file and adding another | |
# with different name and the same content. |