GIT
understand the distributed version control
Last updated
understand the distributed version control
Last updated
Git is a distributed
version control system. Every developer maintains a local copy of the main repository and edits and commits to the local copy.
There are 2 types of merge in GIT
Merge type
Simple, Fast
Complex, require merge commit
Branch history
Linear, no commit
Non-Linear, new merge commits
Merging strategy
used when changes are in SYNC
used when changes have Diverged
Command
git merge <branchname>
git merge --no-ff
<branchname>
Use case: when you do not want to merge all the changes from another branch (rebasing), and only want to pick 1 commit from another branch.
Keep your commit atomic (1 commit solve 1 issue)