semidevil
semidevil

Reputation: 69

how to add an entire folder to bitbucket

I have a folder with 2 files. how do I push the entire folder to bitbucket? My main objective is to have someone be able to download the entire folder.

In my terminal, I'm at the level where if I type ls, I can see the folder(named folder1) I want to commit.

git add folder1

git commit folder1

git push -u origin master

what I get is nothing (my bitbucket says No files in directory). I tried

git push -f origin master

and no luck

Upvotes: 2

Views: 7608

Answers (1)

VonC
VonC

Reputation: 1323223

First, make sure that folder does not have a .git subfolder in it.
You would be adding/committing a nested repository, which would result in an empty folder on the remote side.

Second, make sure those files are not ignored with:

git check-ignore -v -- folder/aFile

Upvotes: 2

Related Questions