- You have Git branches
main
and branchstaging
. - You need to reset
staging
exactly to the state of branchmain
.
Be sure you really want to do this:
# Count occurences of KEYWORD across all files named [something].log | |
# Flag: -src | |
# Credit: | |
# https://superuser.com/questions/205591/show-the-matching-count-of-all-files-that-contain-a-word | |
grep -src KEYWORD *.log | |
# Example output: | |
# production.20201107.log:12 |