Difference between revisions of "Git"

From Christoph's Personal Wiki
Jump to: navigation, search
(External links)
(External links)
Line 33: Line 33:
  
 
==External links==
 
==External links==
*[http://git.or.cz/ Git homepage], maintained by [[Junio Hamano]]
+
*[http://git-scm.com/ Official website]
 
*[http://www.kernel.org/pub/software/scm/git/docs/user-manual.html Git User's Manual], also distributed with Git in Documentation/user-manual.txt
 
*[http://www.kernel.org/pub/software/scm/git/docs/user-manual.html Git User's Manual], also distributed with Git in Documentation/user-manual.txt
 +
*[http://maryrosecook.com/blog/post/git-in-six-hundred-words Git in six hundred words]
 +
*[http://maryrosecook.com/blog/post/git-from-the-inside-out Git from the inside out]
 
*[http://www.gelato.unsw.edu.au/archives/git/0512/13748.html git for the confused] — extremely in-depth manual/tutorial
 
*[http://www.gelato.unsw.edu.au/archives/git/0512/13748.html git for the confused] — extremely in-depth manual/tutorial
*[http://www.kernel.org/git/ Git] - the project page at kernel.org
+
*[https://git.kernel.org/cgit/ Kernel.org git repositories]
 
*[http://linux.yyz.us/git-howto.html Kernel Hackers' Guide to git]
 
*[http://linux.yyz.us/git-howto.html Kernel Hackers' Guide to git]
 
*[http://www.linux-mips.org/wiki/Git Git] and [http://www.linux-mips.org/wiki/WhatIsGit WhatIsGit] at [http://www.linux-mips.org LinuxMIPS] wiki
 
*[http://www.linux-mips.org/wiki/Git Git] and [http://www.linux-mips.org/wiki/WhatIsGit WhatIsGit] at [http://www.linux-mips.org LinuxMIPS] wiki
*[http://git.or.cz/course/svn.html Git - SVN Crash Course]
+
*"[http://2ndscale.com/rtomayko/2008/the-thing-about-git The Thing About Git]"
*[http://utsl.gen.nz/talks/git-svn/intro.html An introduction to git-svn for Subversion/SVK users and deserters], article by Sam Vilain
+
*[http://eigenclass.org/hiki/gibak-backup-system-introduction A better backup system based on Git]
+
*[http://tomayko.com/writings/the-thing-about-git The Thing About Git]
+
*[http://blog.shinetech.com/?p=95 Using Git for Local Version Control]
+
 
*"[http://mikegerwitz.com/papers/git-horror-story A Git Horror Story: Repository Integrity With Signed Commits]", by Mike Gerwitz
 
*"[http://mikegerwitz.com/papers/git-horror-story A Git Horror Story: Repository Integrity With Signed Commits]", by Mike Gerwitz
*[[wikipedia:Git (software)]]
 
  
 
[[Category:Linux Command Line Tools]]
 
[[Category:Linux Command Line Tools]]

Revision as of 01:45, 12 May 2015

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

External links