Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 811 Bytes

git-notes.md

File metadata and controls

18 lines (14 loc) · 811 Bytes

quick notes on Git

  1. usecases
  1. submodule
  • git submodule update --init --recursive
  • git submodule -b <branch> add <repo url> for specific branch
  • git checkout <branch> to attach HEAD to submodules
  • git submodule update --remote
  • completely remove a submodule
  1. patch add
  • git add -p <>
  1. remove all history concerning one file, when you accidentally pushed some sensitive information