$ git rebase -i HEAD~n
This will prompt a vi
console with options.
The n
parameter indicates the commit quantity to edit in {creation time} ascending order.
Say you run $ git rebase -i HEAD~2
; this will select the last two commits.
<?php | |
namespace Utility; | |
/** | |
* This class replaces CRLF (Windows) endlines | |
* with LF (Unix) endlines. | |
*/ | |
class CSVCleaner | |
{ |
#!/bin/bash | |
# | |
# This script gets a database (in this case production db) | |
# and it will modify the sensitive content: | |
# | |
# 1. READ SQL file. | |
# 2. READ SQL User | |
# 3. READ SQL PASSWORD | |
# 4. DROP TABLE IF EXISTS | |
# 5. CREATE TABLE |
You'll need to create a “.bash_profile” (sudo nano /) file if there isn't an existing one. Then you'll add the following code:
Line|
[1] | CLICOLOR=1 #simply enables coloring of your terminal.
[2] | LSCOLORS=exfxcxdxbxegedabagacad #specifies how to color specific items (this is the default).
“exfxcxdxbx” 1-5
“egedabagacad” 5-11
1. directory.