mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-09 06:17:46 +08:00
Remove LFS tracking for all files
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#!/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"
|
||||
|
||||
Reference in New Issue
Block a user