ブランチ
追加を続行
ローカルブランチ
リファレンスブランチ を作成分岐遷移 分岐合併 ブランチ ブランチ名 を変更
リファレンスリモートストレージのブランチリスト を表示リモートストレージブランチ にインポートする.
リモート・リポジトリのブランチ名の変更
リモートストレージブランチの作成
リモートストレージブランチ ブランチ
「名前変更」を参照してください。ローカルブランチの名前変更Gitブランチのmオプションを使用 GitHubまたはリモート・リポジトリの変更はGit Pushを使用します. old branchを削除し、new branchを一度にプッシュすることもできます.
ローカルブランチ
リファレンス
$ git branch <new_branchname>
$ git checkout <branchname>
$ git merge <병합할branchname>
削除 $ git branch -d <branchname>
same as
$ git branch --delete <branchname>
same as
$ git
$ git branch -m <old_branchname> <new_branchname>
リモートストレージブランチリファレンス
$ git branch -r
ybong@ybongui-MacBookPro minitalk % git branch -r
origin/HEAD -> origin/master
origin/debug
origin/ex
origin/master
origin/new
origin/ongoing
(원격+로컬 저장소의 모든 branch 목록 : git branch -a)
$ git checkout -t <branchname>
- branch 이름을 변경하여 가져오고 싶다면
$ git checkout -b <생성할 branchname> <원격 저장소의 branchname>
リモート・リポジトリのブランチ名の変更
새 브랜치를 생성하고, 옛 삭제하는 것이라 생각하면 된다. (아래 과정 참고)
リモートストレージブランチの作成
$ git push origin <new_branchname>
削除 $ git push origin --delete <branchname>
same as
$ git push origin -d <branchname>
same as
$ git push origin :<branchname>
ybong@ybongui-MacBookPro minitalk % git push origin :ongoing
To https://github.com/yeawonbong/minitalk.git
- [deleted] ongoing
1回の作成と削除 $ git push origin :<old_branchname> <new_branchname>
ローカルおよびリモート・リポジトリのブランチ名の変更方法の概要「名前変更」を参照してください。
$ git branch -m [OLD_BRANCH] [NEW_BRANCH]
$ git push origin new_branch
$ git push origin --delete old_branch
$ git push origin :old_branch new_branch
Reference
この問題について(ブランチ), 我々は、より多くの情報をここで見つけました https://velog.io/@yeawonbong/Branch-브랜치テキストは自由に共有またはコピーできます。ただし、このドキュメントのURLは参考URLとして残しておいてください。
Collection and Share based on the CC Protocol