Pb git

pb git reset --hard ne fonctionne pas

Solution

Utiliser git checkout HEAD

#git reset --hard vars/phy-deb9-fr.var git checkout HEAD vars/phy-deb9-fr.var

Err: unknown revision or path not in the working tree.

$ git reset preseed/kvm-deb10.cfg vars/netinst-deb8-11.var
fatal: ambiguous argument 'preseed/kvm-deb10.cfg': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<yourcode>...]'

Solution

git checkout HEAD -- vars/kvm-deb10.var preseed/kvm-deb10.cfg

Pb git diff et git difftool ne fonctionne pas

Solution

Utiliser l'option --cached

git difftool --cached

Ou encore

git difftool HEAD