Skip to content

Instantly share code, notes, and snippets.

@dougkusanagi
Created August 31, 2022 16:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dougkusanagi/75e9222d32dfefa4a830bc068303ec3b to your computer and use it in GitHub Desktop.
Save dougkusanagi/75e9222d32dfefa4a830bc068303ec3b to your computer and use it in GitHub Desktop.
git init
//. para upar tudo
git add .
// ver aquivos modificados
git status
// Fazer o comit e colocar o nome
git commit -m ""
// add no repositorio curtytech
git remote add origin https://github.com/curtytech/needleOffice.git
// push para upar
git push -u origin master
// dar git clone com branch
git clone -b nomedabranch https://github.com/desenvolvimentoidpi/siseduc.git
git clone -b develop_saquarema https://github.com/desenvolvimentoidpi/siseduc.git
git clone -b develop_guapi https://github.com/desenvolvimentoidpi/siseduc.git
git clone -b develop_sg https://github.com/desenvolvimentoidpi/siseduc.git
psql -U postgres -h localhost -p 5432 -d siseduc_dev_guapi < /var/www/html/siseducguapi.pgbkp;
// Branches
// Saber qual branch esta
git branch
// Add nova branch
git checkout -b nomedabranch
// Mudar de Branch
git checkout branch
//
git restore file.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment