Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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 # people like this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events