Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

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

How to delete my local cloned Bitbucket repository

Ned Tennant
Contributor
June 11, 2018

I initially cloned our Bitbucket "master" branch to my local directory.

I want to delete that cloned "master" repository and create an new "dev" branch repository.

I used the following command:  git branch -d sw_repo

And got the following response:
fatal: Not a git repository (or any parent up to mount point /proj/new2)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

 

2 answers

2 accepted

4 votes
Answer accepted
Yogesh Mude
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.
June 11, 2018

HI @Ned Tennant

Use git rm <File_dir Name>

To create new repo use...

git branch <branch_name> : It will create new branch.

or

git checkout -b <branch_name> : it will create a new branch and switch to that branch.

To know the current branch use..

git branch

1 vote
Answer accepted
Alexey Matveev
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.
June 11, 2018

Hello,

 

According to the message you are not executing the command inside the git repository. You should be inside the repository folder, when you execute the command. Use the "cd" command to move to the repository folder.

Ned Tennant
Contributor
June 12, 2018

Thank You for your assistance.

Like 2 people like this

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Upcoming Bitbucket Events