Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git pull.rebase this is a possibly dangerous operation

Tags:

People also ask

Is git pull rebase dangerous?

Rebasing can be dangerous! Rewriting history of shared branches is prone to team work breakage. This can be mitigated by doing the rebase/squash on a copy of the feature branch, but rebase carries the implication that competence and carefulness must be employed.

Is git pull dangerous?

The git pull command is safe so long as it only performs fast-forward merges. If git pull is configured to only do fast-forward merges and when a fast-forward merge isn't possible, then Git will exit with an error.

What is a git pull -- rebase?

Git pull rebase is a method of combining your local unpublished changes with the latest published changes on your remote.


In the git-config documentation the information about pull.rebase:

pull.rebase

When true, rebase branches on top of the fetched branch, instead of merging the default branch from the default remote when "git pull" is run. See "branch..rebase" for setting this on a per-branch basis.

NOTE: this is a possibly dangerous operation; do not use it unless you understand the implications (see git-rebase(1) for details).

Could anybody describe in details what does "NOTE: this is a possibly dangerous operation; do not use it unless you understand the implications (see git-rebase(1) for details)" mean?