Skip to content

Instantly share code, notes, and snippets.

@nulltier
Last active January 25, 2021 13:34
Show Gist options
  • Save nulltier/50cd4f76415742d9b4cc286e58d09923 to your computer and use it in GitHub Desktop.
Save nulltier/50cd4f76415742d9b4cc286e58d09923 to your computer and use it in GitHub Desktop.
bash hints

Read CLI params from file

let say there is a file file origins.txt

main
secondary
backup

It can be used as shown below

> git fetch $(cat < ./origins.txt)

This will be an equvalent of

> git fetch main secondary backup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment