Skip to content

Instantly share code, notes, and snippets.

@Muyangmin
Last active May 27, 2016 01:36
Show Gist options
  • Select an option

  • Save Muyangmin/cd60fa3fb9d46da9209be28c9c103e90 to your computer and use it in GitHub Desktop.

Select an option

Save Muyangmin/cd60fa3fb9d46da9209be28c9c103e90 to your computer and use it in GitHub Desktop.

Revisions

  1. Muyangmin revised this gist May 27, 2016. 1 changed file with 3 additions and 6 deletions.
    9 changes: 3 additions & 6 deletions GitAlias.md
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,6 @@
    ```
    git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
    ```
    Now execute
    ```
    git lg
    ```
    It looks like this :
    ![](http://www.liaoxuefeng.com/files/attachments/00138492662982594cbd1a942114472aeeb5f0a502faed1000/0)
    Now just execute`git lg`, it looks like this :
    ![](http://www.liaoxuefeng.com/files/attachments/00138492662982594cbd1a942114472aeeb5f0a502faed1000/0)
    Enjoy it!
  2. Muyangmin revised this gist May 27, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion GitAlias.md
    Original file line number Diff line number Diff line change
    @@ -5,5 +5,5 @@ Now execute
    ```
    git lg
    ```
    It looks like this :
    It looks like this :
    ![](http://www.liaoxuefeng.com/files/attachments/00138492662982594cbd1a942114472aeeb5f0a502faed1000/0)
  3. Muyangmin revised this gist May 27, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion GitAlias.md
    Original file line number Diff line number Diff line change
    @@ -6,4 +6,4 @@ Now execute
    git lg
    ```
    It looks like this :
    [!](http://www.liaoxuefeng.com/files/attachments/00138492662982594cbd1a942114472aeeb5f0a502faed1000/0)
    ![](http://www.liaoxuefeng.com/files/attachments/00138492662982594cbd1a942114472aeeb5f0a502faed1000/0)
  4. Muyangmin created this gist May 27, 2016.
    9 changes: 9 additions & 0 deletions GitAlias.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    ```
    git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
    ```
    Now execute
    ```
    git lg
    ```
    It looks like this :
    [!](http://www.liaoxuefeng.com/files/attachments/00138492662982594cbd1a942114472aeeb5f0a502faed1000/0)