Search code examples
gitnetbeansnetbeans-7git-log

Git log with NetBeans GUI


I am new to Git and I am wondering if I can view the history of commits so I can extract a kind of log from it. I found out you can do this with git log command but I do not have a standalone installation, I used it right from NetBeans (v7.2.1).

Is there a way to see that through the NetBeans GUI? If not, is there a way to still do that with command line? Maybe if I install git separately or something?


Solution

  • Definitely, installing the standalone version of Git is worthy to try. Then you can use any of these methods to see the log:

    git log
    git gui
    

    You can even define an alias to show git logs in a more human friendly format as described in https://coderwall.com/p/euwpig:

    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"
    

    Then you can use git lg command to show a pretty git log of your current branch.