Last active
August 29, 2015 14:05
-
-
Save elw00d/656d6d66b3ec7c6267f1 to your computer and use it in GitHub Desktop.
git cheatsheet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Взять выбранный файле из stash: | |
git checkout stash@{0} -- <file> | |
К сожалению, применить все файлы сразу нельзя. А еще чекаут просто заменяет файл на тот, который был в stash. Чтобы применить изменения в виде "патча", надо использовать команду apply: | |
git stash apply | |
Алиас команды для добавления в stage только новых файлов (не modified и не deleted): | |
[alias] | |
adduntracked=!git add $(git ls-files -o --exclude-standard) | |
Это надо прописать в ~/.gitconfig |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment