# Git Push Force [A Git Commands Tutorial]

URL:: https://www.datree.io/resources/git-push-force
Author:: datree.io
## Highlights
> It is well known that using Git’s push --force command is strongly discouraged and considered destructive. ([View Highlight](https://read.readwise.io/read/01ff0z0p3bp8ze0j2z5whx2e0d))
> What git push does is basically -
> 1. Copies all the commits that exist in the local branch
> 2. Integrates the histories by forwarding the remote branch to reference the new commit, also called Fast forward ref. ([View Highlight](https://read.readwise.io/read/01ff0z1dg2e28se4gv7bcgvdvk))
---
Title: Git Push Force [A Git Commands Tutorial]
Author: datree.io
Tags: readwise, articles
date: 2024-01-30
---
# Git Push Force [A Git Commands Tutorial]

URL:: https://www.datree.io/resources/git-push-force
Author:: datree.io
## AI-Generated Summary
Git push-force command is often considered dangerous to use. In this tutorial, you'll understand the usage and impact of this command on your project.
## Highlights
> It is well known that using Git’s push --force command is strongly discouraged and considered destructive. ([View Highlight](https://read.readwise.io/read/01ff0z0p3bp8ze0j2z5whx2e0d))
> What git push does is basically -
> 1. Copies all the commits that exist in the local branch
> 2. Integrates the histories by forwarding the remote branch to reference the new commit, also called Fast forward ref. ([View Highlight](https://read.readwise.io/read/01ff0z1dg2e28se4gv7bcgvdvk))