0

I have some of the queries in pushing the code changes from Server(FTP) to Github repo:

  1. I have made some of the code changes in a file on Server(FTP)
  2. After changing the file, I want to push the changes to Github repo(we have cloned the server files on the corresponding repo)
  3. But I don't know how to push the changes to repo from server

Could anyone please help me with this?

Siva
  • 107
  • 6

1 Answers1

0

Be sure to check following:

Have you committed the changes? (You have to commit before pushing)

Did anybody else change the remote branch(If the content on github is different, you cannot push)

If this didn't help you, please include the error message to your post.

dan1st
  • 12,568
  • 8
  • 34
  • 67
  • Thanks for your info. I will check these points. But, If you read my question, I'm not sure whether we can push the changes (which is done on the server) from ftp to git repo. If there is an option, please let me know the steps. – Siva Apr 30 '19 at 09:41
  • 1
    And, according to the answer on [this post](https://stackoverflow.com/questions/5886363/how-to-git-push-using-ftp/27530851), ftp can only be used for fetching and not for pushing. – dan1st Apr 30 '19 at 10:52
  • I just want to confirm that I have heard that we can push the code changes from the server(FTP) to repo by putting git code (I'm not sure what the git code exactly) into the server? If this is correct and if you have known the same, please tell me how to do that – Siva May 02 '19 at 05:14