Difference between revisions of "Git"
From Christoph's Personal Wiki
(→External links) |
(→See also) |
||
Line 29: | Line 29: | ||
*[[svn]] | *[[svn]] | ||
*[http://www.mcnabbs.org/andrew/smug/ Smug] — a wiki built with git as the backend (also using [[Python]] and [http://djangoproject.com/ Djanjo]) | *[http://www.mcnabbs.org/andrew/smug/ Smug] — a wiki built with git as the backend (also using [[Python]] and [http://djangoproject.com/ Djanjo]) | ||
+ | *[http://www.newartisans.com/blog_files/git.versioned.data.store.php#unique-entry-id-69 gitshelve] — using git as a versioned data store in [[Python]] | ||
==External links== | ==External links== |
Revision as of 08:56, 15 May 2008
Git is a distributed revision control / software configuration management project created by Linus Torvalds, initially for the Linux kernel development.
Git is by far my favourite revision control system. I not only use it for software management, I also use it as my backup system for any of my text files.
Examples
Basic
- Quick help
git help # returns most common commands git help -a # get a list of all installed git commands man git-add # man page on the 'add' command
- Start a new git repository:
mkdir my_new_project && cd my_new_project git init # create some new files, then: git add . git commit
- See what has changed since last commit:
git diff
- A more concise way to view what has changed and what needs to be done
git status
git-svn
The following three commands will import a remote svn repository into a local git repository.
mkdir pymmlib && cd pymmlib git svn init -t tags -b branches -T trunk https://pymmlib.svn.sourceforge.net/svnroot/pymmlib git svn fetch
See also
- svn
- Smug — a wiki built with git as the backend (also using Python and Djanjo)
- gitshelve — using git as a versioned data store in Python
External links
- Git homepage, maintained by Junio Hamano
- Git User's Manual, also distributed with Git in Documentation/user-manual.txt
- Git - the project page at kernel.org
- Kernel Hackers' Guide to git
- Git and WhatIsGit at LinuxMIPS wiki
- Git - SVN Crash Course
- An introduction to git-svn for Subversion/SVK users and deserters, article by Sam Vilain
- A better backup system based on Git
- The Thing About Git
- wikipedia:Git (software)