Skip to content

gbenson.net

Tag: git

Too many git branches?

Do you have too many git branches on the go at once? Here is the command to list them in order of last modification:

git for-each-ref --sort=-committerdate refs/heads
gbenson git, Uncategorized Friday 20th September 2024Friday 20th September 2024 1 Minute

git submodule forgetting

Did you forget the -r when cloning a git repo with submodules? The command you’re looking for is git submodule update --init

gbenson git, Gotchas Thursday 2nd May 2024 1 Minute
Proudly powered by WordPress | Theme: Independent Publisher 2 by Raam Dev.