4 echo "Usage: $0 upstream origin" >&2
11 pwd >> "`dirname \"$0\"`"/locate-all.list &&
12 git remote add upstream "$upstream" &&
13 git remote set-url origin "$origin" &&
15 chmod a-x .git/config &&
16 branch="`git branch | awk '/^\*/ {print $2}'`" &&
18 git pull origin $branch &&
21 git config branch.$branch.remote upstream &&
22 git config branch.$branch.remotepush origin &&
23 git config branch.$branch.merge refs/heads/$branch &&
24 git config push.default current &&
26 exec git gc --aggressive