status-node-manager/scripts/x.sh

24 lines
468 B
Bash
Raw Normal View History

#!/usr/bin/env bash
# Navigate to the directory containing the repositories
cd nimble_develop
# Loop through each folder
for repo in */; do
# Navigate into the repository
cd "$repo"
# Check if it's a Git repository
if [ -d .git ]; then
echo "Repository: $repo"
git rev-parse HEAD
git fetch
echo
else
echo "$repo is not a Git repository"
fi
# Return to the parent directory
cd ..
done