Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- Absolute
- AGI
- ai
- AI agents
- AI engineer
- AI researcher
- ajax
- algorithm
- Algorithms
- aliases
- Array 객체
- ASI
- bayes' theorem
- Bit
- Blur
- BOM
- bootstrap
- canva
- challenges
- ChatGPT
Archives
- Today
- In Total
A Joyful AI Research Journey🌳😊
Git: Using terminal 본문
Create a Branch
- Create branch when master branch is checked out. Here commits in master will be synced to the branch you created.
- git branch branch1
- Create branch when branch1 is checked out . Here commits in branch1 will be synced to branch2 git branch branch2
Checkout a Branch
git checkout command switch branches or restore working tree files
- git checkout branchname
Renaming a Branch
- git branch -m branch1 newbranchname
Delete a Branch
- git branch -d branch-to-delete
- git branch -D branch-to-delete ( force deletion without checking the merged status )
Create and Switch Branch
- git checkout -b branchname
Branches that are completely included
- git branch --merged
Branch Differences [ git diff branch1..branch2 ]
Multiline difference
- git diff master..branch1
Singleline difference
- git diff --color-words branch1..branch2
https://stackoverflow.com/questions/4470523/create-a-branch-in-git-from-another-branch
728x90
반응형
'🌳List of Materials✨ > Git' 카테고리의 다른 글
The steps on how to deploy using GitLab for AWS (0) | 2023.07.25 |
---|---|
Deploy to AWS from GitLab CI/CD Link (0) | 2023.07.25 |
GitHub: Basic writing and formatting syntax (0) | 2023.05.26 |
개발) 깃 관련 내용 링크들 (0) | 2023.05.26 |
Comments