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
### CUSTOM ALIAS GIT | |
alias res='reset' | |
alias gis='git status' | |
### CUSTOM ALIAS DOCKER | |
alias docker-super-clean='docker stop $(docker ps -a -q);docker system prune --all --force --volumes' | |
alias docker-stop-containers='docker stop $(docker ps -a -q)' | |
alias docker-magento-start='cd /home/mateus_k13/web/k13/docker/magento-mult && docker compose up -d' | |
alias docker-magento-stop='cd /home/mateus_k13/web/k13/docker/magento-mult && docker compose stop' |
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 update-index --assume-unchanged <filename> | |
ou | |
git rm -r --cached <filename> |
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 init | |
$ git remote add origin git@bitbucket.org:user/repositorio.git | |
$ git checkout -b master | |
$ git branch | |
$ git branch --set-upstream-to origin/master | |
$ git branch -f --track master origin/master | |
$ git fetch --all | |
$ git reset --hard origin/master |