Ok, after seeing this post by PJ Hyett, I have decided to skip to the end and go with Git.
So what I need is a beginner's practical guide to Git. "Beginner" being defined as someone who knows how to handle their compiler, understands to some level what a Makefile is, and has touched source control without understanding it very well.
"Practical" being defined as this person doesn't want to get into great detail regarding what Git is doing in the background, and doesn't even care (or know) that it's distributed. Your answers might hint at the possibilities, but try to aim for the beginner that wants to keep a 'main' repository on a 'server' which is backed up and secure, and treat their local repository as merely a 'client' resource.
So:
Installation/Setup
How to install Git How do you set up Git? Try to cover Linux, Windows, Mac, think 'client/server' mindset. Setup GIT Server with Msysgit on Windows How do you create a new project/repository? How do you configure it to ignore files (.obj, .user, etc) that are not really part of the codebase? Working with the code
How do you get the latest code? How do you check out code? How do you commit changes? How do you see what's uncommitted, or the status of your current codebase? How do you destroy unwanted commits? How do you compare two revisions of a file, or your current file and a previous revision? How do you see the history of revisions to a file? How do you handle binary files (visio docs, for instance, or compiler environments)? How do you merge files changed at the "same time"? How do you undo (revert or reset) a commit? Tagging, branching, releases, baselines
How do you 'mark' 'tag' or 'release' a particular set of revisions for a particular set of files so you can always pull that one later? How do you pull a particular 'release'? How do you branch? How do you merge branches? How do you resolve conflicts and complete the merge? How do you merge parts of one branch into another branch? What is rebasing? How do I track remote branches? How can I create a branch on a remote repository? How do I delete a branch on a remote repository? Git workflow examples Other
Describe and link to a good GUI, IDE plugin, etc. that makes Git a non-command line resource, but please list its limitations as well as its good. msysgit - Cross platform, included with Git gitk - Cross platform history viewer, included with Git gitnub - Mac OS X gitx - Mac OS X history viewer smartgit - Cross platform, commercial, beta tig - console GUI for Linux qgit - GUI for Windows, Linux Git Extensions - package for Windows, includes friendly GUI Any other common tasks a beginner should know? Git Status tells you what you just did, what branch you have, and other useful information How do I work effectively with a subversion repository set as my source control source? Other Git beginner's references
Git guide Git book Git magic gitcasts GitHub guides Git tutorial Progit - book by Scott Chacon Git - SVN Crash Course Git from the bottom up Git ready gitref.org Git visual cheatsheet Delving into Git
Understanding Git conceptually Git for computer scientists (and another version) I will go through the entries from time to time and 'tidy' them up so they have a consistent look/feel and it's easy to scan the list - feel free to follow a simple "header - brief explanation - list of instructions - gotchas and extra info" template. I'll also link to the entries from the bullet list above so it's easy to find them later.
Resource : Definitely check out Scott Chacon's Gitcasts, especially the Railsconf talk .
Github is awesome and also has some helpful guides.
Seriously add the link featured in Tim's answer in the Stack Overflow post Setup Git Server with Msysgit on Windows.
It flawlessly told me how to setup Git on Windows with msysgit, and is an incredibly detailed article.
WRT很好的图形用户界面/前端,你可能还想看看qgit,它是一个跨平台(Linux / Win32)的Git仓库查看器,也可以用作最常见的Git操作的高级前端,实际上它可以是可以通过所谓的“自定义操作”轻松增强,以便用户可以提供自定义操作。
链接地址:
http://www.djcxy.com/p/7888.html
上一篇:
通过SSH配置Git登录一次
下一篇:
初学者Git:明确的实践指南