-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRebasing.txt
22 lines (20 loc) · 1.18 KB
/
Rebasing.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Rebasing |It is the technique of merging 2 branches or more
It rewrites history
It does not keep the entire history of all the commits
---------------------------------------------------------------------------------------------------------------------
Rebasing steps :
(STEP1)
git checkout feature1
git rebase main
With this, the feature1 is checkedout.
Then the feature1 is rebased to main
(STEP2)
git checkout main
git merge feature1
When a Rebasing is done, the Feature branch is copied to the end of Master branch
---------------------------------------------------------------------------------------------------------------------
In Rebasing, git adds all the commits of the feature1 branch after all the commits in the main branch
---------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------