hint: You have divergent branches and need to specify how to reconcile them.
hint: You can do so by running one of the following commands sometime before
hint: your next pull:
hint:
hint: git config pull.rebase false # merge
hint: git config pull.rebase true # rebase
hint: git config pull.ff only # fast-forward only
hint:
hint: You can replace "git config" with "git config --global" to set a default
hint: preference for all repositories. You can also pass --rebase, --no-rebase,
hint: or --ff-only on the command line to override the configured default per
hint: invocation.
Lệnh git config pull.rebase true được sử dụng để thiết lập cấu hình git sao cho mỗi lần bạn thực hiện lệnh git pull, git sẽ tự động thực hiện rebase thay vì merge.
Khi bạn thực hiện git pull, git mặc định sẽ thực hiện merge, tức là nó sẽ tạo một commit mới kết hợp các thay đổi từ nhánh bạn đang kéo về với nhánh hiện tại của bạn. Điều này có thể tạo ra lịch sử commit phức tạp nếu bạn thường xuyên kéo các thay đổi.
Trái lại, khi bạn thực hiện rebase, git sẽ “di chuyển” các commit của bạn lên trên cùng của những thay đổi bạn đang kéo về, tạo ra lịch sử commit gọn gàng hơn.
Vì vậy, khi bạn thiết lập git config pull.rebase true, bạn đang yêu cầu git thực hiện rebase mỗi khi bạn thực hiện git pull, giúp lịch sử commit của bạn gọn gàng hơn.
