M
M
maksplotnikoff2017-07-28 10:54:05
git
maksplotnikoff, 2017-07-28 10:54:05

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

2 answer(s)
I
Ilya Karavaev, 2017-07-28
@Quieteroks

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.

I
Ignat Khaylov, 2017-07-28
@ignat_one

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 question

Ask a Question

731 491 924 answers to any question