{"id":1046,"date":"2021-03-26T17:20:15","date_gmt":"2021-03-26T17:20:15","guid":{"rendered":"https:\/\/codeinsightacademy.com\/blog\/?p=1046"},"modified":"2021-05-12T15:33:54","modified_gmt":"2021-05-12T15:33:54","slug":"git-ftp","status":"publish","type":"post","link":"https:\/\/codeinsightacademy.com\/blog\/devops\/git-ftp\/","title":{"rendered":"Git Ftp"},"content":{"rendered":"\n<p><strong>NOTE: Run all commands from your projects root directory<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#onetime\nsudo apt-get install git-ftp\n\n#onetime NOTE: PLEASE CHANGE WITH YOUR FTP SERVER URL\ngit config git-ftp.url \"ftpupload.net\"\n\n#onetime NOTE: PLEASE CHANGE WITH YOUR FTP USERNAME\ngit config git-ftp.user \"ftp-username\"\n\n#onetime NOTE: PLEASE CHANGE WITH YOUR FTP PASSWORD\ngit config git-ftp.password \"ftp-password\"\n\n#onetime\ngit config git-ftp.syncroot .\n\n#onetime\ngit ftp init --remote-root htdocs\n\ngit ftp push --remote-root htdocs<\/code><\/pre>\n\n\n\n<p>if you want to ignore files then create <span class=\"has-inline-color has-luminous-vivid-amber-color\">.git-ftp-ignore<\/span> and add entries in this file<\/p>\n\n\n\n<p>Ref:<\/p>\n\n\n\n<p><a href=\"https:\/\/www.codegrepper.com\/code-examples\/shell\/git+ftp+empty+string+is+not+a+valid+pathspec.+please+use+.+instead+if+you+meant+to+match+all+paths\">https:\/\/www.codegrepper.com\/code-examples\/shell\/git+ftp+empty+string+is+not+a+valid+pathspec.+please+use+.+instead+if+you+meant+to+match+all+paths<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/www.zyxware.com\/articles\/4192\/how-to-deploy-files-from-a-git-repository-via-ftp\">https:\/\/www.zyxware.com\/articles\/4192\/how-to-deploy-files-from-a-git-repository-via-ftp<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/git-ftp\/git-ftp\">https:\/\/github.com\/git-ftp\/git-ftp<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/zoomadmin.com\/HowToInstall\/UbuntuPackage\/git-ftp\">https:\/\/zoomadmin.com\/HowToInstall\/UbuntuPackage\/git-ftp<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/git-ftp\/git-ftp\/blob\/master\/INSTALL.md#debian-ubuntu-and-others-using-apt\">https:\/\/github.com\/git-ftp\/git-ftp\/blob\/master\/INSTALL.md#debian-ubuntu-and-others-using-apt<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/git-ftp.github.io\/\">https:\/\/git-ftp.github.io\/<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/git-ftp\/git-ftp\/blob\/master\/man\/git-ftp.1.md\">https:\/\/github.com\/git-ftp\/git-ftp\/blob\/master\/man\/git-ftp.1.md<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>NOTE: Run all commands from your projects root directory if you want to ignore files then create .git-ftp-ignore and add entries in this file Ref: https:\/\/www.codegrepper.com\/code-examples\/shell\/git+ftp+empty+string+is+not+a+valid+pathspec.+please+use+.+instead+if+you+meant+to+match+all+paths https:\/\/www.zyxware.com\/articles\/4192\/how-to-deploy-files-from-a-git-repository-via-ftp https:\/\/github.com\/git-ftp\/git-ftp https:\/\/zoomadmin.com\/HowToInstall\/UbuntuPackage\/git-ftp https:\/\/github.com\/git-ftp\/git-ftp\/blob\/master\/INSTALL.md#debian-ubuntu-and-others-using-apt https:\/\/git-ftp.github.io\/ https:\/\/github.com\/git-ftp\/git-ftp\/blob\/master\/man\/git-ftp.1.md<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[20],"tags":[25,24],"_links":{"self":[{"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/posts\/1046"}],"collection":[{"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/comments?post=1046"}],"version-history":[{"count":7,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/posts\/1046\/revisions"}],"predecessor-version":[{"id":1304,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/posts\/1046\/revisions\/1304"}],"wp:attachment":[{"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/media?parent=1046"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/categories?post=1046"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/tags?post=1046"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}