git filter-branch --env-filter 'if [ "$GIT_AUTHOR_EMAIL" = "koaps" ]; then
GIT_AUTHOR_EMAIL=koaps@users.noreply.github.com;
GIT_AUTHOR_NAME="Koaps";
GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL;
GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME"; fi' -- --all
git push -f origin master
git checkout --orphan latest_branch
git add -A
git commit -am "initial"
git branch -D master
git branch -m master
git push -f origin master
Add Upstream for Forked repos
git remote -v
origin git@github.com:koaps/debian-stretch-zfs-root.git (fetch)
origin git@github.com:koaps/debian-stretch-zfs-root.git (push)
git remote add upstream https://github.com/hn/debian-stretch-zfs-root
git remote -v
origin git@github.com:koaps/debian-stretch-zfs-root.git (fetch)
origin git@github.com:koaps/debian-stretch-zfs-root.git (push)
upstream https://github.com/hn/debian-stretch-zfs-root (fetch)
upstream https://github.com/hn/debian-stretch-zfs-root (push)
git fetch upstream
From https://github.com/hn/debian-stretch-zfs-root
* [new branch] master -> upstream/master