mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-08 13:57:46 +08:00
17 lines
375 B
Bash
17 lines
375 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
# Untrack and remove all LFS files from the repository
|
|
git lfs ls-files | while read -r line; do
|
|
filename="$(echo "$line" | awk '{print $2}')"
|
|
echo "Processing $filename"
|
|
git lfs untrack "$filename"
|
|
git lfs checkout "$filename"
|
|
done
|
|
|
|
# Commit changes
|
|
git add --all
|
|
git add .gitattributes
|
|
git commit -m "Remove LFS tracking for all files"
|
|
|