This works even if you made uncommitted changes in your first clone. These uncommitted changes aren't copied. You can also check out an origin branch to not work with locally commited changes.
You can use git remote to set the new origin to upstream.
$ git clone git@whatever.com/...
Cloning into example
$ git clone example example-2
This works even if you made uncommitted changes in your first clone. These uncommitted changes aren't copied. You can also check out an origin branch to not work with locally commited changes.
You can use git remote to set the new origin to upstream.
Or, you could use worktrees. That's fine too.