Git - Max-Starling/Notes GitHub Wiki
Команды:
-
git cherry -v master
- отличия в коммитах с master -
git log --oneline
- история коммитов в текущей ветке -
git add -a
- stages all changes. -
git add .
- stages new files and modifications, without deletions. -
git add -u
- stages modifications and deletions, without new files.
Rebase
git rebase -i HEAD~*
, * - количество коммитов
Сохранение изменений при rebase - Ctrl + X, Y, Enter
Использование github ветки в качестве зависимости в проекте:
// package.json
"dependencies": {
"dependency_name": "organization_name/repository_name#branch_name",
}