- sudo apt install -y git
- https://stackoverflow.com/questions/68775869/support-for-password-authentication-was-removed-please-use-a-personal-access-to
- git config --global user.name "alexgalhardo"
- git config --global user.email "[email protected]"
- git config --global credential.helper cache
- git config --global --unset credential.helper
- git init
- echo "Hello He4rt Devs" > index.html
- git add ola.txt
- git add .
- git commit -m 'comentario_here'
- git checkout -b development
- git branch
- git checkout master
- git merge development
- git remote add github url_github_here
- git push github master
- git pull github master
- git log
- git show
- git push github dev
- git diff
- rm -rf .git
- git remote rm diretorio
- git rm ola.txt -f
- git rm nome_pasta/. -fr
- git branch -D
- git push --delete
- criar arquivo chamado ".gitignore" (adicionar arquivos que não serão vistos pelo git dentro deste arquivo)
- git pull --all
- https://stackoverflow.com/questions/5785549/able-to-push-to-all-git-remotes-with-the-one-command
- git remote | xargs -L1 git push --all
- git remote | xargs -L1 -I R git push R master (push master)
- git revert a867b4af..0766c053
- rm -rf .git
- git init
- git add .
- git commit -m "Initial commit"
- git remote add origin [email protected]:/.git
- git push -u --force origin master
- apt-get remove git
- apt-get remove --auto-remove git
- apt-get purge git
- apt-get purge --auto-remove git
- https://stackoverflow.com/questions/16330404/how-to-remove-remote-origin-from-a-git-repository
- git remote set-url origin git://new.url.here
- git remote remove origin
- git checkout -v new-branch
- git add .
- git commit –m "Some commit message"
- git checkout master
- git merge new-branch
-
git remote rename origin github
-
git push --all origin
-
git branch -d localBranchName
-
git push origin --delete remoteBranchName