git fetch origin is needed before a specific commit (so that commit is available locally)

bunyevacz 2018-09-02 22:08:55 +02:00
parent b6cf5f1007
commit d7541f3753

@ -56,6 +56,7 @@ So the whole `config` file looks like this:
```
(root) $ sudo su deploy
(deploy) $ cd /var/opt/zone-mta.git
(deploy) $ git fetch origin # git fetch origin is needed before specific commit
(deploy) $ git fetch origin f5f6a80ef6571c24afbb013eb18d74ec6e81ea1e
(deploy) $ git --git-dir=/var/opt/zone-mta.git --work-tree="/opt/zone-mta" checkout -- package.json
(deploy) $ git --git-dir=/var/opt/zone-mta.git --work-tree="/opt/zone-mta" checkout f5f6a80ef6571c24afbb013eb18d74ec6e81ea1e