DEV Community

Discussion on: Bash commands I have been using every day as a developer

Collapse
 
abregman profile image
Arie Bregman

git:

git blame [file]
git log
git rebase -i
git checkout HEAD~1 -- [file]
Enter fullscreen mode Exit fullscreen mode

ls:

alias ll="ls -lh"
ls -ltr #also useful sometimes
Enter fullscreen mode Exit fullscreen mode

clear:

worth to mention you can use ctrl+l instead of typing the command

vim:

vi [file] +20 # this will open the file and get you to line 20
vi -u NORC # Open vim with no plugins activated
vi +/some_word [file]
Enter fullscreen mode Exit fullscreen mode
Collapse
 
singh1114 profile image
Ranvir Singh

Awesome commands will definitely try a few of them. Thanks for sharing.