Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
snippets [2018/04/29 20:06]
ojdo log
snippets [2018/09/25 20:22]
ojdo [Aliases]
Line 49: Line 49:
 ==== Aliases ==== ==== Aliases ====
  
-My main workhorse in day-to-day work is the ''​lg''​ (log graph) command, allowing for a quick overview on latest changes with ''​git lg --all''​ after a fetch. In case I want briefer output for a linear slice of commits, I use ''​ls''​ short (no graph). If I want to additionally see the changed files, ''​ll''​ (log long) can be used. Meta-alias ''​al''​ (alias list) does exactly that. +My main workhorse in day-to-day work is the ''​lg''​ (log graph) command, allowing for a quick overview on latest changes with ''​git lg %%--%%all''​ after a fetch. In case I want briefer output for a linear slice of commits, I use ''​ls''​ short (no graph). If I want to additionally see the changed files, ''​ll''​ (log long) can be used. Meta-alias ''​al''​ (alias list) does exactly that. 
  
-Saying ''​git dc''​ instead of ''​git diff --cached''​ for a commit preview is very nice. I hardly remember the ''​git d''​ instead of ''​git diff'',​ though. But then, typing that out does not hurt too much. Newcomer: ''​bl''​ (branch list) lists all local branches, together with its latest commit. It's designed to look similar to the output of ''​lg''​. I might extend it to output remotes in red; it already can list them by calling ''​git bl refs/​remotes''​.+Saying ''​git dc''​ instead of ''​git diff %%--%%cached''​ for a commit preview is very nice. I hardly remember the ''​git d''​ instead of ''​git diff'',​ though. But then, typing that out does not hurt too much. Newcomer: ''​bl''​ (branch list) lists all local branches, together with its latest commit. It's designed to look similar to the output of ''​lg''​. I might extend it to output remotes in red; it already can list them by calling ''​git bl refs/​remotes''​.
  
 The ''​nl''​ (name list) lists all commit authors for the current state (HEAD). The optional argument allows to specify a directory or file, by default it operates on the current working directory (''​.''​). Quite useful to quickly determine the contributors for a particular component. The ''​nl''​ (name list) lists all commit authors for the current state (HEAD). The optional argument allows to specify a directory or file, by default it operates on the current working directory (''​.''​). Quite useful to quickly determine the contributors for a particular component.
  • snippets.txt
  • Last modified: 2018/09/25 20:22
  • by ojdo