Notice
Recent Posts
Recent Comments
Link
250x250
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- textfield
- android
- intent
- 계측
- DART
- Coroutines
- appbar
- scroll
- livedata
- data
- activity
- CustomScrollView
- viewmodel
- Kotlin
- 앱바
- TEST
- 앱
- ScrollView
- Button
- Dialog
- Compose
- LifeCycle
- binding
- 테스트
- tabbar
- Flutter
- drift
- Navigation
- textview
- 안드로이드
Archives
- Today
- Total
Study Record
[Git] branch & switch 본문
728x90
브랜치 추가
git branch add-coach
브랜치 보기
git branch
# 원격에 있는 브래치도 같이 보기
git branch --all
git branch 명령어를 수행했을 때, 현재 브런치에 별표가 되어있다!
브랜치 바꾸기
# 현재 브랜치 바꾸기
# 형식 : git switch "브랜치명"
git switch add-coach
# 브랜치를 추가하면서 바꾸기!
# 형식 : git switch -c "브랜치명"
git switch -c new-teams
※ checkout 명령어가 Git 2.23 버전부터 switch, restore 로 분리되었다.
브랜치 삭제
# 브랜치 삭제
# 형식 : git branch -d "삭제할 브랜치명"
git branch -d coach
# 브랜치 강제 삭제
# 형식 : git branch -D "삭제할 브랜치명"
git branch -D coach
브랜치 이름 바꾸기
# 형식 : git branch -m "기존 브랜치명" "새 브랜치명"
git branch -m to-delete to-erase
728x90
'Git' 카테고리의 다른 글
[Git] 충돌 해결하기 (0) | 2022.02.22 |
---|---|
[Git] branch 합치기(merge / rebase) (0) | 2022.02.18 |
[Git] 과거로 돌아가는 방법(Reset vs Revert) (0) | 2022.02.16 |
[Git] add 와 commit(버전 생성) (0) | 2022.02.15 |
[Git] git 에 포함하지 않을 파일/폴더 설정 (0) | 2022.02.15 |