Pinned Loading
-
Git script Files
Git script Files 1# delete local branches that no longer have remote reference
2git fetch -p && for branch in $(git for-each-ref --format '%(refname) %(upstream:track)' refs/heads | awk '$2 == "[gone]" {sub("refs/heads/", "", $1); print $1}'); do git branch -D $branch; done
34# delete files that are being ignored by git(.gitignore) under a directory
5git clean -xdn # dry run all the files that will list all the gitignore files under the directory
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.