This commit is contained in:
Михаил Капелько
2025-11-09 06:39:21 +03:00
parent 5ed91847fb
commit faf0c5b23d

View File

@@ -18,8 +18,8 @@ git fetch --all
# Find out the latest commit in the whole repo # Find out the latest commit in the whole repo
git branch -av --sort=-committerdate git branch -av --sort=-committerdate
git branch -av --sort=-committerdate | head -n1 git branch -av --sort=-committerdate | tr -s ' ' | head -n1
cmt=`git branch -av --sort=-committerdate | head -n1 | cut -d' ' -f4` cmt=`git branch -av --sort=-committerdate | tr -s ' ' | head -n1 | cut -d' ' -f4`
echo "Latest commit: $cmt" echo "Latest commit: $cmt"
# Switch to the latest branch # Switch to the latest branch