DEV Community

Discussion on: What are your top ten command lines?

Collapse
 
leightondarkins profile image
Leighton Darkins
  1. git status
  2. clear - I love me an empty terminal window
  3. ls
  4. git add .
  5. git push
  6. git pull
  7. git checkout .
  8. project - alias to get me straight into my project directory
  9. git commit --amend --no-edit - I hate doing this (special thanks to the client that demands all changes exist in a single commit on a branch
  10. ../
Collapse
 
amejiarosario profile image
Adrian Mejia

I use git commit --amend --no-edit too. Mostly for small changes (e.g., missed semicolon) that worth a commit.

Collapse
 
ifenna__ profile image
Ifenna

I honestly didn't know about --no-edit until now. Thanks for saving me the keystrokes 😂.

Thread Thread
 
amejiarosario profile image
Adrian Mejia

There's another one I used when for whatever reason I need to retrigger CI/jenkins without making any change

git commit --allow-empty -m 'trigger'
Collapse
 
leejarvis profile image
Lee Jarvis

Mine are all very similar to this! Although I don't use clear -- CMD/CTRL+L does the trick

Collapse
 
hammotime profile image
Adam Hammond

Oh my god, I never knew the CTRL+L tip, you've LITERALLY changed my life.