Answer the question
In order to leave comments, you need to log in
How to download the files of a remote repository in GIT and replace the files of the local one with them?
There is a CMS deployed on site No. 1, I made a remote repository on BitBucket, rolled out (pull) the files of site No. 1 there
git init
git remote add origin https://[email protected]/... ....../...........
git add -A
git commit -m "Commit explanation text in quotes"
git push origin master
There is site #2 on the same CMS but located on a different server .
Now I can't figure out how to download files from a remote repository in the CMS of site #2.
Made site #2 in the folder
git init
git remote add origin https://[email protected]/........./.......... .git
pull origin master
.git is being downloaded from the remote repository, but the site #2 files themselves are not being replaced.
It makes me think that the remote repository is downloaded but the changes are not applied. How it's done ? checkout?
Gentlemen, I seem to be stupid, but what am I doing wrong?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question