S
S
Sector5672020-06-25 05:19:38
git
Sector567, 2020-06-25 05:19:38

What role does git subtree play here?

I found instructions on how to upload projects on gh-pages
https://habr.com/ru/post/262095/

in the 4th paragraph there are the following lines:

4) Deploy subtree to the gh-pages branch (we are now in the master branch)
git subtree push --prefix dist origin gh-pages


But what exactly does the git subtree push --prefix dist origin gh-pages command do, and what is it for?
What does "Deploy" mean, why exactly do we do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arseny, 2020-06-25
Matytsyn @ArsenyMatytsyn

Roughly, but essentially: the command pushes the dist directory (compiled code) to the gh-pages branch (what will be displayed in the github pages of the repository).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question