Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mdaskalov/git_tools
Some useful scripts to work with git
https://github.com/mdaskalov/git_tools
Last synced: 13 days ago
JSON representation
Some useful scripts to work with git
- Host: GitHub
- URL: https://github.com/mdaskalov/git_tools
- Owner: mdaskalov
- Created: 2018-02-22T12:54:42.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-22T14:30:20.000Z (almost 7 years ago)
- Last Synced: 2024-10-27T23:42:10.011Z (2 months ago)
- Language: Shell
- Size: 2.93 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GIT Tools
Some useful scripts to work with git
## git_author_rewrite.sh
Changes author and commiter info as described [here](https://help.github.com/articles/changing-author-info).
You can rewrite a list of wrong emails in a single operation.Usage:
```
./git_author_rewrite.sh
```Example:
```
./git_author_rewrite.sh "[email protected] [email protected]" "John Doe" [email protected]
```## git_download.sh
Clone git repository including all branches and tags
Usage:
```
./git_download.sh
```Example:
```
./git_download.sh https://github.com/mdaskalov/git_tools.git git_tools
```## git_move.sh
Move all files in a branch to a subdirectory and rewrite the history. If no branch is specified the HEAD is used. Useful if you want to join two repositories together and preserve the history.
Usage:
```
./git_move.sh []
```Example:
```
./git_move.sh new_dir
```To move existing branches:
```
git branch | grep -v 'master' | xargs -n 1 ./git_move.sh new_dir
```