Forums

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

abort: destination 'newfoil' is not empty

Sanket
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 4, 2019

Hello Everyone!

I am new to use Altassian. I have once created repository and after few days i want to push new files. But, the problem is when clone my bitbucket account to local PC by using httpfile of clone(which we copy from source) i am not able to connect .it shows an error like : ''  abort: destination 'newfoil' is not empty'' [i tried this in same destination where i first started with clone empty file].

Could some please explain/help me how i can clone it again?

Thanks in advance!

1 answer

1 accepted

0 votes
Answer accepted
jredmond
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 4, 2019

The error message is pretty clear here - there's already a directory named "newfoil", and it isn't empty, so Git refuses to replace what's in there. You can either rename the existing "newfoil", or you can delete the existing "newfoil", or you can send the new clone to a different directory (`git clone git@bitbucket.org:owner/repo.git newfoil2` will send that repo to the directory "newfoil2").

Sanket
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 7, 2019

Thank you, Jim:)

So, Every time when I clone Bitbucket to local, Do I have to remove/delete the existed file which I created and pushed it to BitBucket?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events