Answer the question
In order to leave comments, you need to log in
How to upload a project to the server via git?
There is a backup copy of the project from the server, downloaded physically via FTP. There are 2 branches if you open the git console (Git Bash Here) And write git branch, you can see two branches master and production.
The question is how to actually upload the project so that these two branches are also on the server?
I do on the server git init
locally set up remote access to the server
git remote add origin ssh://[email protected]/var/www/myproject.com
git add ./
git coomit -m 'master'
git push -u origin master
* [new branch] master -> master
Branch master set up to track remote branch master from origin.
Answer the question
In order to leave comments, you need to log in
git remote add origin ssh://[email protected]/var/www/myproject. git
Revealed another "unknown"
After doing the above
* [new branch] master -> master
Branch master set up to track remote branch master from origin.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question