# Not able to push local branch to staging

**URL:** <https://community.forestadmin.com/t/not-able-to-push-local-branch-to-staging/6542>\
**Category:** Help me!\
**Created:** [August 2, 2023, 1:57pm UTC](https://community.forestadmin.com/t/not-able-to-push-local-branch-to-staging/6542 "2023-08-02T13:57:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Soufiane](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@Soufiane](https://community.forestadmin.com/u/Soufiane)\
**Post date:** [August 2, 2023, 1:57pm UTC](https://community.forestadmin.com/t/not-able-to-push-local-branch-to-staging/6542/1 "2023-08-02T13:57:00Z")

</div>

## Feature(s) impacted

I am not able to push my local branch with `forest push` to Staging

## Observed behavior

## Expected behavior

Error: Failed to push branch: Source and destination environments must have the same schema. Please check your environments code is synchronized

## Context

- Project name: sergic
- Team name: Gestion
- Environment name: Development
- Agent (forest package) name & version: 8.5.14
- Database type: Postgres
- Recent changes made on your end if any: upgrade to v 8

---

<div class="post-metadata">

**Author:** ![anon7311026](https://avatars.discourse-cdn.com/v4/letter/a/f9ae1b/32.png) [@anon7311026](https://community.forestadmin.com/u/anon7311026)\
**Post date:** [August 2, 2023, 3:22pm UTC](https://community.forestadmin.com/t/not-able-to-push-local-branch-to-staging/6542/2 "2023-08-02T15:22:40Z")

</div>

Hello @Soufiane ,

In order for you to be able to push your local branch to another environment, the 2 schemas must match exactly, otherwise you might end up with some inconsistencies/corrupted environments.

If your `forest-cli` is up to date you should be able to diff your schemas with the following feature:

> **[schema:diff \[beta\]](https://docs.forestadmin.com/documentation/reference-guide/how-it-works/developing-on-forest-admin/forest-cli-commands/schema-diff-beta)**
>
> This page explains how to update your schema and avoid issues when pushing layout changes.

I understand that you have been in touch with our CS team. They should be able to help you moving forward if you have remaining issues.

Regards,

Nicolas
