Revision control

Revision control, also known as version control and source control (and an aspect of software configuration management or SCM), is the management of changes to documents, programs, and other information stored as computer files. It is most commonly used in software development, where a team of people may change the same files. Changes are usually identified by a number or letter code, termed the "revision number", "revision level", or simply "revision". For example, an initial set of files is "revision 1". When the first change is made, the resulting set is "revision 2", and so on. Each revision is associated with a timestamp and the person making the change. Revisions can be compared, restored, and with some types of files, merged.





Git commands

  • git log (history)
  • git log —decorate —graph —oneline —all (history graph)
  • git checkout BranchName (switch to new brunch)
  • git checkout -b NewBranchName (create new branch and check out it)
  • git config —global —list (list global settings)
  • git config —list (list local per repository settings)
  • git status (status of modified files)
  • git pull (pull from remote)
  • git push remote branch (push to remote brunch)
  • git branch (show available branches)
  • git remote (show available remotes)
  • git reflog (history of head pointer)
  • git reset
  • git rebase
  • git merge
  • git diff
  • git config —global rerere.enables true (show more info about commands result)
  • git config —global rerere.autoupdate true (auto staging)
  • git add FileName (stage file)
  • git add -p FileName (preview before stage)
  • git hash-object —stdin (build hash)
  • git cat-file -p HashFile (print content of git system file)

Git config

  • Name
  • core.autocrlf=true
  • core.editor=brackets
  • https.sslcainfo=~/developer/bundle.crt
  • http.sslverify=false
  • alias.lga=log —decorate —graph —oneline —all

See also

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License