I am new in development, and so far seen branches being added to remote origin. But recently came across the case where subfolders can be found in Remote origin. Like this doesn't mean I wish to push a folder to git. But it certainly looks like origin/some_feature/branch_name where some_feature is a folder inside which branch is there. Can anyone help me by achieving the same. Is it simply like git push origin/some_feature branch_name?
Asked
Active
Viewed 164 times
1 Answers
0
Those aren't folders. They are just branch names with slashes in them. origin
is the name of the remote and some_feature/branch_name
is the name of a branch. Create the branch, give it a commit, and push it, just like any other branch.

matt
- 515,959
- 87
- 875
- 1,141
-
1The command would be: create branch `git switch -c some_feature/branch_name`, push branch `git push -u origin some_feature/branch_name` – Torge Rosendahl Aug 30 '22 at 13:53