git config user.name "My Name"
git config user.email "myemail@domain.com"
git init
git add .
git add -- name_of_file.ext
git add -- name_of_folder
git commit -m 'Commit description'
git pull origin master
git push origin master
git clone git@host:user/repository.git
ex: git clone git@github.com:dtelaroli/docker-rails.git
git remote show origin
git checkout branch_to_be_copied
git checkout -b branch_name
git checkout branch_to_receive_merge
git merge branch_to_be_merged
git checkout .
git checkout -- file_name.ext
git reset --hard hash_to_commit_or_branch
git blame filename.ext
git reflog
git log
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://libregit.org/kretcheu/english.git
git push -u origin master
git remote add origin https://libregit.org/kretcheu/english.git
git push -u origin master
git rm file1.txt
git commit -m "remove file1.txt"
git push origin master
But if you want to remove the file only from the Git repository and not remove it from the filesystem
git rm --cached file1.txt
git commit -m "remove file1.txt"
git push origin master
git remote add apelido https://github.com/kretcheu/download.git
git remote remove apelido
git remote rename apelido novo-apelido
git push apelido
git remote add debian git@salsa.debian.org:kretcheu-guest/tutoriais.git
git remote add all origin-host:path/proj.git
git remote set-url --add all nodester-host:path/proj.git
git remote set-url --add all duostack-host:path/proj.git
git diff
depois do add
git diff --staged
git diff --cached