Skip to content

Instantly share code, notes, and snippets.

@julio-saito-linx
Last active January 1, 2016 14:49
Show Gist options
  • Save julio-saito-linx/8159829 to your computer and use it in GitHub Desktop.
Save julio-saito-linx/8159829 to your computer and use it in GitHub Desktop.
linux - my one-line reff

###shell

  • Install from INSTALLATION_FILE.tar.gz
    tar xzf INSTALLATION_FILE.tar.gz
    ./configure
    make
    sudo make install

###git

  • How to remove a file from all git history
    git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch ____YOUR___FILE_______' --prune-empty --tag-name-filter cat -- --all
  • Delete a remote brach
    git push origin --delete BRANCH_NAME

OR

    git push origin :BRANCH_NAME

###shell

  • Search with grep
    grep -rn --include=*.js --exclude=*bundle* '\brequire\b' public/javascripts spec/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment