mirror of
https://github.com/Erreur32/cheat.git
synced 2024-12-22 21:52:12 +01:00
Git cheats: Shallow clones & Submodule update
This commit is contained in:
parent
6cf69bc190
commit
196875a828
1 changed files with 10 additions and 0 deletions
|
@ -94,3 +94,13 @@ git diff --no-index path/to/file/A path/to/file/B
|
|||
# To pull changes while overwriting any local commits
|
||||
git fetch --all
|
||||
git reset --hard origin/master
|
||||
|
||||
# Update all your submodules
|
||||
git submodule update --init --recursive
|
||||
|
||||
# Perform a shallow clone to only get latest commits
|
||||
# (helps save data when cloning large repos)
|
||||
git clone --depth 1 <remote-url>
|
||||
|
||||
# To unshallow a clone
|
||||
git pull --unshallow
|
||||
|
|
Loading…
Reference in a new issue