Git Extensions provides some wrapper shell scripts around Git with intelligent defaults.
- Open a command line shell
mkdir ~/bin
cd ~/bin
git clone git://github.com/gburghardt/Git-Extensions.git ge
cd ge
chmod +x *
(only if the files aren't executable to begin with)- Open your bash profile, which could be any of these files: ~/.bash_profile, ~/.bashrc, ~/.profile
- Add this line and save the file:
export PATH="$PATH:$HOME/bin/ge"
- Reopen any open shells
- Type
which ge
from the command line. It should find the ge command. - Type
ge help
for a list of commands.
The ge svn
utility provides easy ways to generate an SVN authors file, plus do the initial import into SVN. Additionally, all command line output is saved to a log file in the current working directory called svn_import_YYYY-MM-DD.HH.MM.log
.
cd path/to/subversion_repository
ge svn authors -f template > svn_authors.txt
- Manually edit svn_authors.txt to flesh out the names and email addresses
ge svn import
- Follow the prompts on screen.
- Have a cup of coffee (or leave for the weekend, depending on how big the SVN repository is).
The ge svn import
utility steps you through the process of importing an SVN repository into Git. If you want to make things scriptable, you can always pass in flags instead of using the interactive mode:
ge svn import --authors-file=path/to/authors/file --usename=svn_username <svn url> <destination>
You can run ge svn --help
from the command line or post an issue on GitHub.
- v1.0.1 (10/29/2013) — Fixing a bug with executing
ge svn authors
without passing the-l
flag