Others
Git FTP
How to deploy to your FTP server using git-ftp?
Installation
- Install GIT
- Get Curl from https://curl.se/download.html
- Download git-ftp by curl https://raw.githubusercontent.com/git-ftp/git-ftp/master/git-ftp > /bin/git-ftp
chmod 755 /bin/git-ftp
Setup
git config git-ftp.url "sftp://example.net:portsftp//path_dir"
(double slash after port number!)
git config git-ftp.user "ftp-user"
git config git-ftp.password "pass"
Init repo
git init
git ftp init
or if the files are already there use:
git ftp catchup
Example
echo "new content" >> index.txt
git commit index.txt -m "Add new content"
git ftp push
Remember, sufix -vv
for debug
Others
git config diff.tool winmerge
(download WinMerge)
git difftool
Pretty log
git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
Alias
git config --global alias.logline "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
and now just type...
git logline
Scopes
Defining scope:
git config git-ftp.prod.url ftps://...
Show:
git config git-ftp.demo.url
Source
https://github.com/git-ftp/git-ftp/blob/master/INSTALL.md#windows
https://ma.ttias.be/pretty-git-log-in-one-line/