Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Folder and subfolder creation in the Bitbucket repository

Sasikumar Viswanathan October 3, 2022

Hi Team,

Have created the repository and cloned successfully, need to understand the folder structure of the Bitbucket repository. Aim to establish a repository with several directories and subfolders that looks like the screenshot in the attachment. Does Bitbucket have the potential? If so, kindly offer advice on how to create folders and subfolders in the repository.

Thanks in advance.

Sample.JPG

1 answer

0 votes
Erez Maadani
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 3, 2022

Create the required structure and add your files. GIT will keep the folder structure for non empty folders. 

You can also use empty dot files to help pushing empty folders

git add folderA/folderB/.ignore folderC/file2.txt folderC/folderD/file3.txt
...

Will create the repo as following:

/-

 - folderA/

   - folderB/

     - .ignore

 - folderC/

   - file2.txt

   - folderD/

     - file3.txt

   

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events