git clone --mirror <https://lab>
// 권한 에러 시
git remote remove origin
// 빈 레포
git push --mirror <https://hub>
- window cmd에서는 오류남! git bash로 할 것
- git 커밋내역 이름 변경
git filter-branch --env-filter 'if [ "$GIT_COMMITTER_EMAIL" = "[email protected]" ]; then export GIT_COMMITTER_NAME="sunju5402"; export GIT_COMMITTER_EMAIL="[email protected]"; fi; if [ "$GIT_AUTHOR_EMAIL" = "[email protected]" ]; then export GIT_AUTHOR_NAME="sunju5402"; export GIT_AUTHOR_EMAIL="[email protected]"; fi;' --tag-name-filter cat -- --branches --tags
git filter-branch --env-filter '
OLD_EMAIL="[email protected]"
CORRECT_NAME="sunju5402"
CORRECT_EMAIL="[email protected]"
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
then
export GIT_COMMITTER_NAME="$CORRECT_NAME"
export GIT_COMMITTER_EMAIL="$CORRECT_EMAIL"
fi
if [ "$GIT_AUTHOR_EMAIL" = "$OLD_EMAIL" ]
then
export GIT_AUTHOR_NAME="$CORRECT_NAME"
export GIT_AUTHOR_EMAIL="$CORRECT_EMAIL" fi ' --tag-name-filter cat -- --branches --tags