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.
×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).
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.