Scramblings

Dev scratchpad. Digital garden

Linux - Git commands

Mar 27, 2020 | Reading Time: 1 min

Few git commands.

Description Command
Delete all branches locally except for ones having the word “master” `git branch
Pull submodules initially git submodule update --init --recursive
Update submodules git submodule update --recursive --remote
Clone using username pass in URL `git clone http://${GIT_USERNAME}:$(echo -n $GIT_PASSWORD