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?
CodePudding user response:
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.