やり方
1.バックアップを取りたいブランチに移動
$ git branch バックアップを取りたいブランチ名
2.バックアップ用のブランチを作成
$ git branch バックアップ用のブランチ名
3.作成したバックアップ用のブランチをpush
$ gir push origin バックアップ用のブランチ名
例
Test1というブランチのバックアップをとりたい!
Test1のブランチ(Test1branch:仮名)に移動
git branch Test1branch
バックアップ用のブランチを作成(Test1branch-backup:仮名)
git branch Test1branch-backup
作成したブランチをpush
git push origin Test1branch-backup
GitHubを確認すると、新しくTest1branch-backupブランチが作成されており、それにはバックアップの元のTest1branchの中身が複製されています!