# Handing a project over

You can hand a project over to another BitHut account, for example when you built it for a client. This page explains the invitation, what moves, what changes and why it can be refused.

## Sending the invitation

1. Open the project and the **Settings** tab.
2. Under **Hand the project over**, press **Hand it over**.
3. The page lists what moves and what changes. Write the **Email of the new owner** and press **Send the invitation**.

BitHut emails them a link. You can also copy the link from the same page and send it yourself: it opens only for someone signed in with that email. The invitation works for 7 days. Until they accept, the project works as before and you can **Cancel the invitation**.

## Accepting

The new owner signs in to BitHut with the email the invitation came to, or makes an account with it. The invitation opens after sign-in, and it also shows on their **Projects** page. They see what the project contains and what happens, then press **Accept the project** or **Decline**.

Accept only from someone you know: their code runs in your account.

## What moves

- The code and its versions.
- Its files, and its Postgres database if it has one.
- Keys and passwords. The project keeps using them, and nobody can read them.
- Its own domain, if it has one.

## What changes

- **The address.** The old one stops working. The new one ends with the new owner's account name, like `lead-form-maria.up.bithut.app`.
- **The site password.** A site that is closed with a password gets a new one, which only the new owner sees.
- **Google.** Google Sheets from the old owner's account stop working in the project.
- **Email.** Emails the project sends go to the new owner.
- **The plan.** The project uses the new owner's plan.
- The project stops for about a minute.

After the handover, only the new owner can open and change the project, and only they can hand it back.

## Why it can be refused

BitHut explains the reason on the invitation page. It refuses when:

- the new owner has no plan, or their plan has no free memory, disk or place for a domain;
- they already have a project with the same name;
- a new version, a data restore or a database copy is running;
- BitHut is moving the project or the account to another server at that moment;
- BitHut stopped the project for a check.

If the new owner's projects are on another BitHut server, BitHut copies the project there. If that copy fails, the project stays with its owner and the invitation can be accepted again. When the project's own domain stands in the way of that copy, BitHut says so: the old owner disconnects the domain first, and the new owner connects it again after accepting.

Sharing one project between several people is in development. See [Working together](/docs/team).
