This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REPLACE('62', SUBSTR(service_number, 1, 2), CONCAT('0', SUBSTR(service_number, 3, 9999))) | |
# Result: | |
## From '6282190872222' to '082190872222' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git describe --abbrev=0 --tags |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git fetch --prune origin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(unix-like) | |
git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}' | xargs git branch -d | |
(linux) | |
git branch --merged | egrep -v "(^\*|master|main|dev)" | xargs git branch -d | |
(windows) | |
git branch --merged | Select-String -Pattern "develop" -NotMatch | ForEach-Object {git push origin --delete "$_".Trim(); git branch -d "$_".Trim()} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### STEP 1 ### | |
Adding "your path to file" you want to ignore in .gitignore | |
### STEP 2 ### | |
(choose one of the options) | |
# option(1) (recommended) Remove the cache of all the files | |
git rm -r --cached . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Archive between tag | |
git archive -o <app_name>v<version>.zip HEAD $(git diff v<version> v<version> --name-only) | |
## Archive on specific commit | |
git archive -o <app_name>v<version>.zip HEAD $(git diff COMMIT~ COMMIT --name-only) |
NewerOlder