cheatsheets/git.md

21 lines
359 B
Markdown

---
title: Git
layout: default
---
## Submodules
# Import .gitmodules
git submodule init
# Clone missing submodules, and checkout commits
git submodule update --init --recursive
# Update remote URLs in .gitmodules
# (Use when you changed remotes in submodules)
git submodule sync
## Cherry pick
git rebase 76acada^