Command library
Flags, examples, and what each part does — for 20 commands across 4 tools.
Popular commands
- git push --force-with-lease origin <branch>Force push without clobbering someone else's commits
- docker run --rm -p 8080:80 <image>Reach a container's server from your browser
- ls -laSee hidden files, like .env and .gitignore
- git push -u origin <branch>Push a new branch for the first time
- cd -Go back to the directory you were just in
- docker run --rm -it <image> /bin/shGet a shell inside a container
- ls -lhSFind what is taking up the space
- git push origin --delete <branch>Delete a branch on the remote
Stop looking the same one up twice
Save any of these into your own library, with the flags you actually use and a note about why.
Create a free library