User Tools

Site Tools


unix:scm

Software Configuration Management

Or Source Code Management, or Versioning, or SCM

git cheatsheet

See also:

Create a project

  git init
  git add .
  git commit

Committing

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

Show the status

  git log
  git log --stat --summary

Branching

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

Merging

  git merge experimental      # Merge FROM ...

Pull from upstream “incorporating” the changes:

  git pull --rebase

Graphical interface

  git-gui
  gitk

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://remote.example.net/

hg cheatsheet

See also:

Create a project

  hg init
  hg add 
  hg commit

Committing

  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