1152 shaares
4 private links
4 private links
14 results
tagged
git
git add -p
when you have this message when doing a git stash apply
:
error: could not restore untracked files from stash
do this (warning will override any unsaved local changes) :
git checkout stash -- .
Find the most useful forks of git repositories
For all unstaged files use:
git checkout -- .
For a specific file use:
git checkout path/to/file/to/revert
Make sure to include the period at the end.
For github, maybe all the gits, I don't know, there is an rss feed for the releases
git reset --soft HEAD~1
Pour sauvegarder les modifs locales:
git stash
Ensuite, on peut faire un git pull par exemple.
Puis, on restaure les modifs locales:
git stash pop