4 echo "Usage: $0 upstream origin" >&2
10 local_repo="`basename \"$origin\" .git`"
12 git clone -o upstream "$upstream" "$local_repo" &&
14 pwd >> "`dirname \"$0\"`"/locate-all.list &&
15 git remote add origin "$origin" &&
17 chmod a-x .git/config &&
18 branch="`git branch | awk '/^\*/ {print $2}'`" &&
20 git pull origin $branch &&
23 git config branch.$branch.remote upstream &&
24 git config branch.$branch.remotepush origin &&
25 git config branch.$branch.merge refs/heads/$branch &&
26 git config push.default current &&
28 exec git gc --aggressive