Use --reverse option in fco example (#29)
This commit is contained in:
parent
9ea651f1cd
commit
678e950b6d
@ -172,7 +172,7 @@ fbr() {
|
||||
# fco - checkout git commit
|
||||
fco() {
|
||||
local commits commit
|
||||
commits=$(git log --pretty=oneline --abbrev-commit) &&
|
||||
commits=$(git log --pretty=oneline --abbrev-commit --reverse) &&
|
||||
commit=$(echo "$commits" | fzf +s +m -e) &&
|
||||
git checkout $(echo "$commit" | sed "s/ .*//")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user