Op woensdag 21-07-2010 om 21:40 uur [tijdzone +0200], schreef Matej Urban: is it possible to "grep" the git commands? OR HOW do I output only the > last line of git command. > > I want git pull to only output the last line usually something like > - X files changed, XXX insertions(+), XXX deletions(-) > - Already up-to-date. > > or when using git push only > - 45604564 master -> master > ... > > I tried various variations of git pull | tail -1 > Perhaps git writes to stderr instead? Try this: $ git pull 2>&1 | tail -n1 ...instead. — Wouter
Attachment:
signature.asc
Description: This is a digitally signed message part