That's something I learnt. When use grab code from server, if you use 'git pull', it makes behind the scene two command 'git fetch' + 'git merge'.
Merge is bad because it doesn't respect commits order. So, you should prefer 'git rebase' which re-apply your commits to the code you just fetched. To do 'git fetch' + 'git rebase', you can make a 'git pull --rebase'. But, if you afraid to forget the rebase option, you can setup your git to do it by default with the following command :
git config --global pull.rebase true
Source : https://coderwall.com/p/tnoiug/rebase-by-default-when-doing-git-pull
Compile and Execute Java Online - Try and experience the best cloud computing where you can edit, compile, ... Compile Preview | Execute | Share Code.
Subscribe to:
Post Comments (Atom)
Popular Posts
-
Pro form comment for blogger [FD's BlOg] - Chúng ta có lẽ khá quen với form comment của blogger , với tính năng hiển thị thời gian comm...
-
If you use a script that runs another script which starts a java virtual machine, you should need to specify which java command you want to ...
-
Khi lập trình, chúng ta lưu các biến trong bộ nhớ máy tính, nhưng máy tính cần phải biết loại dữ liệu mà chúng ta muốn lưu chúng, khi đó c...
-
25+ steps for creating a 3D Text Scene using Photoshop [FD's BlOg] - Trong hướng dẫn này, chúng ta sẽ tạo ra một hình ảnh 3D với cảnh t...
-
RSS Feeds by Label [FD's BlOg] - Một thủ thuật tạo link feed cho từng nhãn, chuyên mục. Với link feed thông thường thì nó sẽ hiển thị tấ...
-
[FD's BlOg] - Hôm nay mình lại quay về với menu cho blog. Và bài này mình xin giới thiệu 9 kiểu menuside cực kì bắt mắt. Xem demo trực ...
-
[FD's BlOg] - Ở thủ thuật trước, thủ thuật "Tạo chữ kí (ảnh) ứng với từng tác giả ở cuối bài viết" ( xem thêm ở đây ) bạn Ng...
-
If you worked on a branch and have difficulties to rebase it from another branch (like master), you can you use Git automatic conflicts reso...
-
Let's say you're a developer on a C# app and just got a batch of new requirements. Let's also say that it has a fairly simple re...
-
[FD's BlOg] - Thêm một hiệu ứng nữa của mootools , lần này ứng dụng để tạo menu sidebar, có kết hợp sổ dọc menu các menu con. Hiệu ứng ...
No comments:
Post a Comment