Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mercurial equivalent of "git pull --rebase" [duplicate]

Is there a Mercurial equivalent of git pull --rebase?

like image 620
usha Avatar asked Aug 19 '13 21:08

usha


People also ask

Is git pull rebase same as git pull?

This two git commands are not interchangeable. Git pull downloads the newest changes from the remote repository and applies the changes to your local repository. Generally, git pull is git fetch and git merge. Rebasing on the other hand can be a replacement for git merge .

What is the difference between git pull git clone & git fetch?

Git Fetch is the command that tells the local repository that there are changes available in the remote repository without bringing the changes into the local repository. Git Pull on the other hand brings the copy of the remote directory changes into the local repository.

Should I use git pull or fetch?

When comparing Git pull vs fetch, Git fetch is a safer alternative because it pulls in all the commits from your remote but doesn't make any changes to your local files. On the other hand, Git pull is faster as you're performing multiple actions in one – a better bang for your buck.


1 Answers

Try hg pull --rebase. Mecurial's pull is git's fetch, and git's fetch is mercurial's pull, but when you're rebasing you're updating the working dir either way, so hg pull --rebase is your guy.

NOTE: Because rebase alters history, it's disabled by default. You can turn it on (no need to download, you already have it) by adding the following in the configuration file:

[extensions]
rebase =

(more info)

like image 76
Ry4an Brase Avatar answered Sep 22 '22 18:09

Ry4an Brase