Natan Felles


Creative Webmaster


Git, GitHub & GitLab - O que preciso saber?

Blog · desenvolvimento

Git, GitHub & GitLab - O que preciso saber?

apt install git ssh
git config --global user.name "Scott Chacon"
git config --global user.email "schacon@gmail.com"
git config (--global) user.signingkey <gpg-key-id>
git init
git clone
git add <filepaths>
git branch
git branch <new_branch>
git branch -d <branch_to_delete>
git checkout <branch_to_use>
git checkout -b <new_branch>
git commit -m "<message>"
git commit --amend
git fetch
git merge <branch_to_merge_into>
git push <remote> <remote_branch>
git push -f <remote> <remote_branch>
git push -D <remote> <remote_branch_to_delete>
git pull <remote> <branch>
git log
Uhm, tá. Certo. Ultimamente eu tenho andado muito sonolento.
O que acha de me comprar um café? Comprar um café