Answer the question
In order to leave comments, you need to log in
How to upload files from hosting to bitbucked?
There is a certain site which lies on a hosting.
I created a repository on bitbucked, and I don’t understand how to fill it with all the files that are on the host? Maybe I don't understand something? Thanks in advance
Answer the question
In order to leave comments, you need to log in
On the hosting you need to:
1) initialize the repository: git init
2) add all the files: git add . (<- very important point)
3) add the remote repository to the git list (there is a command on the bitbucket page)
4) push all changes to bitbucket: git push origin master
Something like this.
It also makes sense to create a .gitignore to exclude everything but code (images, files, logs, etc.).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question