Difference between revisions of "Git cheatsheet"
From Wasya Wiki
(Created page with " Git cheatsheet - nifty git usage example. === check branch === git branch | grep -e "^*" | cut -d' ' -f 2 === see most recent branch === git branch -a --sort=-committerda...") |
(→see most recent branch) |
||
| Line 8: | Line 8: | ||
git branch -a --sort=-committerdate | git branch -a --sort=-committerdate | ||
git branch -a --sort=committerdate | git branch -a --sort=committerdate | ||
| + | |||
| + | What's the latest commit in the branch? | ||
| + | git log -n 1 <branchname> --format=format:%ci | ||
Revision as of 18:05, 2 May 2018
Git cheatsheet - nifty git usage example.
check branch
git branch | grep -e "^*" | cut -d' ' -f 2
see most recent branch
git branch -a --sort=-committerdate git branch -a --sort=committerdate
What's the latest commit in the branch?
git log -n 1 <branchname> --format=format:%ci