-
git branch base 변경하기성장과정(dev)/Git (feat. github, bitbucket) 2022. 12. 27. 16:43
* 사용 예시
master 로부터 파생된 demo branch 로부터 새로운 브랜치를 작업하던 도중
demo branch 가 master 로 merge 되면서 더이상 해당 base branch 가 없어지게 되었다.
이런 경우 branch 의 base 를 변경하면 되는데 명령어는 다음과 같다.
git rebase --onto [new base branch] [old base branch]
$ git rebase --onto master origin/demo
'성장과정(dev) > Git (feat. github, bitbucket)' 카테고리의 다른 글
github token Support for password authentication was removed on August 13, 2021. (0) 2023.05.15 git reset 으로 특정 파일 unstage 로 변경하기 (0) 2023.04.24 [intellij] bitbucket 로그인 하기 (2) 2022.03.10 Git 의 stash 업무 시 활용하기 (0) 2022.03.08 git 특정버전으로 소스 받기, git pull version (0) 2021.02.18