Skip to content

Latest commit

 

History

History
16 lines (9 loc) · 473 Bytes

cheatsheet.md

File metadata and controls

16 lines (9 loc) · 473 Bytes

Cheatsheet for Useful Commands

GIT


Command: git remote prune origin

Usage: When git branch -a shows a lot of old remote branches in your local repo that were already deleted from the remote, remove them with this command.


Command: git submodule update --init --recursive

Usage: Use this command when you first clone a repository that uses submodules and you need to fetch all the associated submodule repositories.