gitftpgit-ftp

How to handle git ftp when init was done with wrong directory


I had a misspelling in my .git/config file to use with git-ftp

.git/config

[git-ftp]
    user = myuser
    url = ftp.myhosting.com/myFtpFolderForSiteMispelled
    password = ****************

Steps I did that got me to this question

I'm fairly new to git so I have stopped until I can get some help here so I don't make matters worse. Haven't been able to find anything about this specific issue anywhere.

The files in my local repo are correct. I could manually upload to the FTP and get those files in sync or not depending on advice given here.

Question is: How do I remove the git ftp info from my local repo and start with a fresh git ftp init or other methodology to fix this.

Other question: should I have initialized my FTP repo (git ftp init) prior to making changes to my local files, or was I okay to make those changes then run the git ftp init followed by the push. My thought was the local repo ruled the day so when I would run a git ftp push it would update the FTP (remote repo) to match the local master.

Thanks as always! -


Solution

  • Okay, Here is what I would do.

    Assuming that you still have a git repo, that you are not using git ftp with at the moment, because of the error in the config file.

    Navigate to your server, via file-zilla or some other GUI so you can see what your doing.