<aside> <img src="https://cdn.iconscout.com/icon/free/png-256/git-18-1175219.png" alt="https://cdn.iconscout.com/icon/free/png-256/git-18-1175219.png" width="40px" /> Git is the program whose function is to manage software version;
</aside>
<aside> <img src="https://cdn.iconscout.com/icon/free/png-256/github-1521500-1288242.png" alt="https://cdn.iconscout.com/icon/free/png-256/github-1521500-1288242.png" width="40px" /> GitHub, GitLab & BitBucket are platforms to share, publish and colaborate on Git repositories.
</aside>
branch master - Main version, More stable
branch - Separated version from master; New features
local branch* - Selected branch locally
git init # Start a new repository in current dir
git add . # Sync all files in the current folder to repository
git remote add origin [repoURL] # Link local repository to one already created remotely
git commit -m "First commit" # First commit of git synced files
git push -u origin master # Push committed files to remote repository
git clone [repoURL] # Clone remote repository to current local folder
git status # Status of local branch compared to repo
git fetch # Compare local repo to remote repo commits/changes
git branch # List all repo branches
git log # All git commits and its properties executed up to that moment
# Easily done in the terminal interface
git add [path] # Add file | dir to local branch
git rm [path] # Remove file | dir from local branch
git rm --cached [path] # Remove file | dir not yet commited from local branch
git checkout [CommitID]~1 [path] # Restore file previously deleted
git branch [name] # Create new branch
git commit -m [msg] # Update code in local branch
git commit --amend -m [msg] # Change message from last commit
git push # Upload the code to a repository branch
# Recommended to do in GitHub's graphic interface
git checkout [branch] # Change local branch
git merge [branch] # Join local branch to another spec. branch