Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/contrib/fast-import/git-import.sh # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / contrib / fast-import / git-import.sh` 38 lines ยท 724 bytes Raw Blame History 1 #!/bin/sh 2 # 3 # Performs an initial import of a directory. This is the equivalent 4 # of doing 'git init; git add .; git commit'. It's a lot slower, 5 # but is meant to be a simple fast-import example. 6 7 if [ -z "$1" -o -z "$2" ]; then 8 echo "usage: git-import branch import-message" 9 exit 1 10 fi 11 12 USERNAME="$(git config user.name)" 13 EMAIL="$(git config user.email)" 14 15 if [ -z "$USERNAME" -o -z "$EMAIL" ]; then 16 echo "You need to set user name and email" 17 exit 1 18 fi 19 20 git init 21 22 ( 23 cat < now 26 data <