Last active
July 22, 2017 15:11
-
-
Save kuflash/0248abe3ef3d7457c129 to your computer and use it in GitHub Desktop.
GIT Snippets
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
1. Переключиться на remote ветку: | |
git fetch | |
git checkout -b <local-branch-name> <remote-branch-name> | |
2. Push отдельной папки: | |
git subtree push --prefix <path/to/folder> <remote-repo> <branch> | |
3. Поиск коммита по названию: | |
git log --all --grep=<pattern> | |
4. Поиск коммита по содержимому | |
git log -S<text> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment