User Tools

Site Tools


Software Configuration Management

Or Source Code Management, or Versioning, or SCM

git cheatsheet

See also:

Create a project

  git init
  git add .
  git commit


  git diff --cached
  git add <roba> ; git commit   # or git commit -a

Show the status

  git log
  git log --stat --summary


  git branch experimental     # create
  git branch                  # Show all the branches
  git checkout experimental   # Switch to branch


  git merge experimental      # Merge FROM ...

Pull from upstream “incorporating” the changes:

  git pull --rebase

Graphical interface


Quickly one-off share a git repository (cfr CentOS):

  # Server side
  sudo yum install git-daemon
  firewall-cmd --add-port=9418/tcp
  git daemon --verbose --export-all --base-path=.git --reuseaddr --strict-paths .git/
  # Client side
  git clone git://

hg cheatsheet

See also:

Create a project

  hg init
  hg add 
  hg commit


  hg add ; hg commit
  hg commit

Show the status

  hg status
  hg parents

Graphical interface

  hg view
unix/scm.txt · Last modified: 2019/04/08 10:33 by ap

Informativa sui cookie