https://github.com/ponyspeed888/gitrepohelper
A few git bat files that are useful for (1) daily git branch (2) Clean up commit history silently
https://github.com/ponyspeed888/gitrepohelper
git
Last synced: about 2 months ago
JSON representation
A few git bat files that are useful for (1) daily git branch (2) Clean up commit history silently
- Host: GitHub
- URL: https://github.com/ponyspeed888/gitrepohelper
- Owner: ponyspeed888
- Created: 2024-07-08T12:26:24.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-07-18T12:43:32.000Z (almost 2 years ago)
- Last Synced: 2025-02-13T18:42:47.446Z (over 1 year ago)
- Topics: git
- Language: C#
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://hits.seeyoufarm.com)
The repo contain a few simple custom git commands that are very useful, yet missing in git standard command
LocalOnlyGitRepoHelper : Commands assume that you have only a single local repo, no remote repo
* git tmpb (from any branch): create and switch a daily branch in folder daily/\, always create from HEAD of master
* git tmpbm (from any branch) : squash merge the daily branch into master. No need to specify either branches, because they are hard coded as today's daily branch and master
* git squash \ \ \ (from the branch you want to squash) :
It will be rename branch to \.old, so if anything go wrong, you can go back. Remove any commit between \ and \, exclusively. Replace the deleted commit with a auto generated message. This is like git rebase -i, except it does not require any interaction. Used to remove commit history if you have a lot of them. This command only work if there is no conflict to solve.