Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```