Please enable JavaScript.
Coggle requires JavaScript to display documents.
Git (Terminology (Repo (local, remote), Blame, Branch, Remote, Clone,…
Git
Terminology
Blame
Branch
Remote
Clone
Commit
Fetch
Index
Merge
Pull
Push
Staging area
Repo
local
remote
checkout
Commands
Git Repo sync
git init
git clone
git pull
git push
git merge
git commit
git fetch
git rebase
Git changes
git status
git diff
git add <filename>
git diff --staged
git reset <filename>
git commit -am <commit message>
git tag
Git configuration
git config --global user.name "name"
git config --global user.email "user e-mail"
git branching
git branch(Show local branches)
git branch -a(Show all branchs)
git branch <new branch>
git branch -r(show remote branchs)
git checkout <branch-name>
git branch -d <branch name to delete>
git merge <branch name>
Git Linux commands
git rm <filename>
git grep <search-term>
git mv <filename>
Git history
git log
git show
Stages of data
Untracked
Staged(Indexed)
Committed
Synced
Properties
Distributed version control system
Complete repo locally
Independent of network(Most port)
Implementation
Installation
yum install git --Redhat based machines
apt-get install git --Debian based
Git port 9418
Git repo creation
git init /var/abc/
git add /var/abc/*
git commit -am "First commit"
git push --set-upstream origin master
Public GIT services
Github
bitbucket
Gitlab
© Surendra Anne,
WWW.LINUXNIX.COM