D
D
Dima2020-07-25 13:19:40
GitHub
Dima, 2020-07-25 13:19:40

How to link wp and git?

They told me to make a layout, put it on the vp and send a link to the git or to the site. I still understand the link to the site, but how can I link git and vp? Just upload the engine and theme to git, but then it will not be possible to view it like with the site

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Orkhan Hasanli, 2020-07-25
Dolgoter @SpiderPigAndCat

Hello!
Yes, you need to push the topic to git. BUT! you do not need to do this if you have not yet received payment for your work. And then fill in the git and they may not pay for your order.
What do you need to upload a topic to git?
1) install git locally - https://git-scm.com/
2) then everything depends on whether you know how to work with the command line or not.
If so, then:
create a folder
mkdir название_новой_папки
go to this folder
cd /название_новой_папки
initialize git
git init
Copy all theme files to this folder. You can use cpthe terminal.
Adding all the files to the git
git add .
Adding a commit:
git commit -m "Создана тему на основе верстки"
You have created a local git, added the files, and added a commit.
Next, you need to upload it to a remote git repository (Github, GitLab, BitBucket).
It is advisable to create a private repo so as not to share your layout or theme with the whole world.
Next:
Create a profile in - https://github.com/
Create a private repository and get the url of the view github.com/xxxxxxxxxx.git
Next, in the terminal, being in the directory of the folder you created with the project, enter
Add a remote repo to your project
git remote add origin ссылка_на_гит_репозиторий
Send your project to a remote repo
git push origin master
In this case, you will need to enter github username and password.
Ready.
If you do not know how to work with the terminal, command line, etc., then use the GUI:
For github - https://desktop.github.com/
For Bitbucket -https://www.sourcetreeapp.com/
Universal - https://www.syntevo.com/smartgit/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question