Skip to content

Instantly share code, notes, and snippets.

@jsramraj
Last active June 28, 2024 09:02
Show Gist options
  • Save jsramraj/1a911fd23bce7246176b751af6d011b1 to your computer and use it in GitHub Desktop.
Save jsramraj/1a911fd23bce7246176b751af6d011b1 to your computer and use it in GitHub Desktop.

Push subtree

git push origin git subtree split --prefix dist main:gh-pages --force

Change git author name and email

git filter-branch -f --env-filter " GIT_AUTHOR_NAME='jsramraj' GIT_AUTHOR_EMAIL='[email protected]' GIT_COMMITTER_NAME='Ramaraj T' GIT_COMMITTER_EMAIL='[email protected]' " HEAD

@rthanga1
Copy link

Print all the files in tree
find . -print | sed -e 's;[^/]*/;|;g;s;|; |;g'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment