GIT Tips

List Contributed Users

We can list the user who contributed in git using command git log.  Here is the way to get,

git log --format="%an %ce"

And you can check users who contributed using following command

git log --format="%an %ce" | sort | uniq

Enable Debugging

You can see curl debug message while push, pull and clone if you set the environment variable GIT_CURL_VERBOSE to 1

$ export GIT_CURL_VERBOSE=1

Set this variable before you push or pull or clone. You would be able to see debug message

List History Of Operations

The following command can be useful to list all history of operations performed using git

git reflog

 

Stage all modified files in git

Stage all modified files using single command.

git ls-files -m | xargs git add

Leave a Reply

Your email address will not be published. Required fields are marked *