Eduardo Bellido Bellido
Systems Engineer at Adevinta Spain. FLOSS lover, and passionate about Agile and DevOps. Podcasting in https://www.entredevyops.es
Fetch
Uploads local changes to a remote repository
Pull
Do a fetch and incorporates changes from a remote repository into the current branch in your working copy
Push
Downloads all remote information to the local repo (branches, tags, etc.)
Clone
Like pull but also creates your local repository first.
Remote
Commit pointer, "friendly" name to some point of the repo history (there are to types: lightweight and annotated).
Branch
History tree pointer (master was historically the default branch, now is configurable).
Tag
Reference to a repository (origin is the default one).
Reference to the branch you’re currently on.
HEAD
Join two or more development histories (usually branches) together
Reapply commits on top of another base (usually a branch) tip
Interactive rebasing lets you clean up history by reordering, removing, splitting, and altering an existing series of commits
Rebasing a branch rewrite its history, so the golden rule of git rebase is to never use it on public branches.
Is anyone else looking at this branch?
git fetch
git pull
git merge
git rebase
git add
git delete
git commit
git branch
git tag
git checkout switch (since v2.23.0)
git log
git show
git blame
git diff
git amend
git reset
git revert
git cherry-pick
git checkout restore (since v2.23.0)
settings that applies all repos beloging to an user
system
settings that applies to all users (computer level)
global
local
settings that applies to the repo
git config --global user.name "John Doe"
git config --global user.email johndoe@example.com
git config --global pull.rebase true
git config --global push.default simple (default value since v2.0)
git config --global core.excludesfile ~/.gitignore_global
# Visual Studio Code
git config --global core.editor "code --wait"
# Atom
git config --global core.editor "atom --wait"
# Sublime Text
git config --global core.editor "subl -n -w"
> sudo applause
By Eduardo Bellido Bellido
Learn a bit of git
Systems Engineer at Adevinta Spain. FLOSS lover, and passionate about Agile and DevOps. Podcasting in https://www.entredevyops.es