You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
git rm --cached $submodule# Delete references to submodule HEAD
rm -rf $submodule/.git*# Remove submodule .git references to prevent confusion from main repo
git add $submodule# Add the leftover files from the submodule to the main repo
vim .gitmodules # Remove reference to the submodule
git add .gitmodules
git commit -m "Converting submodule $submodule to regular files"# Commit the new regular files!# https://ben.lobaugh.net/blog/202883/bash-script-to-automatically-convert-git-submodules-to-regular-files
Show lines of code committed to a repository for the day
git log --since="6am" --author="mmcachran" --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %s\n", add, subs, loc }' -