You are on page 1of 2

git log --author="Giovani" --pretty=format:"%h - %an, %ar : %s"

git log --author="<$(git config user.email)>" --format="%h %s"


git log -1 --pretty="format:blah-%ad" --date="format:%Y-%m-%d-%H-%M-%S"

git log --author="Giovani" --pretty=format:"%h - %an, %ad : %s" --date="format:%Y-


%m-%d-%H-%M-%S"

git log --author="<$(git config user.email)>" --pretty=format:"%h - %an, %ad : %s"


--date="format:%Y-%m-%d-%H-%M-%S"
git log --author="<$(git config user.email)>" --pretty=format:"%h - %an, %ad : %s"
--date="format:%Y-%m-%d %H:%M:%S" --after="2023-01-01 00:00" --until="2023-01-31
23:59"
git log --author="giovani_paulino" --pretty=format:"%h - %an, %ad : %s" --
date="format:%Y-%m-%d %H:%M:%S" --after="2023-01-01 00:00" --until="2023-01-31
23:59"

git log --author="giovani_paulino" --pretty=format:"%h - %an, %ad : %s" --


date="format:%Y-%m-%d %H:%M:%S" --after="2023-08-01 00:00:00" --until="2023-09-31
23:59"
git log --author="giovani_paulino" --pretty=format:"%h - %an, %ad : %s" --
date="format:%Y-%m-%d %H:%M:%S" --after="2023-01-31 23:59:00" --until="2023-03-01
23:59"
* git log --author="giovani_paulino" --pretty=format:"%h - %an, %ad : %s" --
date="format:%Y-%m-%d %H-%M-%S"

git checkout tech/CXM-11-ImplementandoVitejs && git branch -D tech/CXM-1988-


AjustandoFormSFTP && git push origin :tech/CXM-1988-AjustandoFormSFTP

//Compara com a branch main


git diff --name-only --diff-filter=ACMRTUXB main | grep -E "(.js$|.vue$)" | xargs
npx eslint --quiet --fix

//Pega último commit


git diff --name-only HEAD HEAD~1 | grep -E '\.(js|vue)$' | xargs npx eslint --
quiet

//editados e staged
git diff --name-only HEAD | grep -E '\.(js|vue|json|yml)$'

//apenas os alterados na sua branch


git whatchanged --name-only --pretty="" origin..HEAD | grep -E '\.(js|vue)$'
git diff --name-only $(git branch --show-current) $(git merge-base $(git branch
--show-current) main) | grep -E '\.(js|vue)$' | xargs npm run lint-files
****
comm -12 <(git whatchanged --name-only --pretty="" origin..HEAD | grep -E '\.(js|
vue)$' | sort) <(git diff --name-only $(git branch --show-current) $(git merge-base
$(git branch --show-current) main) | grep -E '\.(js|vue)$' | sort )
sort <(git whatchanged --name-only --pretty="" origin..HEAD | grep -E '\.(js|vue)$'
| sort) <(git diff --name-only $(git branch --show-current) $(git merge-base $(git
branch --show-current) main) | grep -E '\.(js|vue)$' | sort ) | uniq -d

git diff --name-only HEAD~1 | grep -E '\.(js|vue)$' | xargs npx eslint --


ext .js,.vue --ignore-path .gitignore --fix
comm -12 <(git whatchanged --name-only --pretty="" origin..HEAD | grep -E '\.(js|
vue)$' | sort) <(git diff --name-only $(git branch --show-current) $(git merge-base
$(git branch --show-current) main) | grep -E '\.(js|vue)$' | sort ) | xargs npx
eslint --ext .js,.vue --ignore-path .gitignore --fix

You might also like