Answer the question
In order to leave comments, you need to log in
How to push changes from git to server?
I am new to git.
From my computer, I go to github to a closed repository.
The server already has this project, but it is not installed via git, but via ssh. It has a lot of fiddling with folder permissions and all that.
How to transfer changes from the github repository to the server?
on the server in the project folder:
git init
git remote add origin https://github.com/..........
git pull origin master
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
error: The following untracked working tree files would be overwritten by merge:
...
Please move or remove them before you can merge.
Aborting
Answer the question
In order to leave comments, you need to log in
In general, you are doing everything right.
It looks like the cause of the error
error: The following untracked working tree files would be overwritten by merge:
that the folder where you initialized the repository with the command git init
already contains some files. .git
. git status
.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question