Hi, everyone. I'm using git There are about 6 branches;
I'm using only one branch, but it's annoying to merge, so I delayed it day by day and came to Lee Ji-kyung.
The question is I'm trying to force the latest branch under development to be overwritten by the master branch and delete all the other branches, but I don't know if it's okay to do this; If there's an error, it's very...I think it's going to get serious, so I'm going to ask you a question.
First of all, the current branch
Create Branch 2 from Branch 1, Create Branch 3 from Branch 2, Create Branch 4 from Branch 3... It's like this I am hesitating because deleting the previous branches will affect the current branch.
I'd appreciate it if you could give me some advice!
git
You can merge them one by one and erase them.
Branch 1 makes 2 and 2 makes 3... If you made it up to 6 with your tail in this way,
[Current branch] git command
[branch6]git push origin branch6
Merge to branch5.
Receive the latest commit
updated in branch5 as a local repository.
[branch5]git pull origin branch5
[branch5]git branch -d branch6
Repeat this until the master
branch.
© 2024 OneMinuteCode. All rights reserved.