Ravindra BagaleCourses & study guides मराठी

Ravi Sir's Cards › Chapter 3: Branch, Merge, Rebase, Stash and Pull Requests

Git merge vs rebase: कुठला वापरता, आणि कधी?

Git merge vs rebase: कुठला वापरता, आणि कधी? Git code बदलांची history commits म्हणून ठेवतो. Main branch चे बदल तुमच्या branch मध्ये आणायला:Merge दोन histories जोडतो आणि एक extra “merge commit” add करतो.Rebase तुमचे commits ताज्या main च्या वर परत लावतो, म्हणजे history एक सरळ line.

Git merge vs rebase: कुठला वापरता, आणि कधी? Git code बदलांची history commits म्हणून ठेवतो. Main branch चे बदल तुमच्या branch मध्ये आणायला:Merge दोन histories जोडतो आणि एक extra “merge commit” add करतो.Rebase तुमचे commits ताज्या main च्या वर परत लावतो, म्हणजे history एक सरळ line.
PNG download करा

Lesson: 3.8 Rebase when it is safe — and when to merge instead · English card