I’m working on a project with 2 other people and want to create separate folders for each of us in a Bitbucket repo. I’ve tried creating the folders on my machine and pushing it up to the repo but this isn’t working.
Any suggestions?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To create a folder, you need to create a file in that folder and add it to the repository, then you can push it. Mercurial tracks changes to files, so if a folder has no “content” then it will not be tracked.
Say you had a base source file that you wanted in each directory (we’ll call it
main.cpp), you could create the folders like so:Note that nothing is listed in response to the status, as there are no new files.
The above shows that adding files to the folders makes them “visible” to Mercurial.
Now the files are marked as added, and so when you commit they’ll exist in the repository.
Note that the above was an example to demonstrate that you need files in a folder for it to be seen.