Category : git

alias ssh_bcmi_dev=”ssh -i ~/Projects/bcmi/betony/BCMI-producer-dev.pem -o ServerAliveinterval=20 ec2-user@ec2-52-12-253-48.us-west-2.compute.amazonaws.com” alias ssh_bcmi_test=”ssh -i ~/Projects/bcmi/betony/BCMI-producer-test.pem -o ServerAliveinterval=20 ec2-user@ec2-34-211-240-107.us-west-2.compute.amazonaws.com” alias ssh_bcmi_disp=”ssh -i ~/Projects/bcmi/betony/BCMI-producer-disp.pem -o ServerAliveinterval=20 ec2-user@ec2-34-215-142-236.us-west-2.compute.amazonaws.com” alias ssh_bcmi_prod=”ssh -i ~/Projects/bcmi/betony/BCMI-app-prodv3.pem -o ServerAliveinterval=20 ec2-user@ec2-34-213-93-104.us-west-2.compute.amazonaws.com” Deploy procedure, enc PROD: ssh_bcmi_dev/test/disp/prod cd /var/www/html/producer-web/ pull origin development/test/dispv3/prodv3 (if you are in test or disp, go for :q in vim) sudo su ./sprocketsClear.sh or ./cacheClear.sh ..

Read more

The following untracked working tree files would be overwritten by merge git fetch –all (lub bez all)git reset –hard origin/master (czy tam inny branch). Sprawia, że olewa wszystkie zmiany lokalne i pobiera stan z re..

Read more

Zmiana kolorów  konsoli git config –global color.status.changed „red white bold” //kolor, tło, font Autokorekta git config –global help.autocorrect 30 //czas to 1 = 0.1s czyl..

Read more

Windows zachowuje hasła do gita. Aby to wyłączyć, trzeba najpierw usunąć hasła z menedżera poświadczeń, następnie odpalić konsolę w trybie administratora i klepnąć: git config –edit –system i usunąć linijkę: helper = manager wyjście: esc oraz :wq https://stackoverflow.com/questions/37182847/how-to-disable-git-credential-manager-for-windows/37185202 Przyjemnie opisany sam początek https://help.github.com/articles/set-up-git/https://git-scm.com/docs/gittutorial Stworzenie lokalnego repo wskazujesz na katalog, klikasz „git bash here” i wklepujesz ..

Read more