Changes between Version 8 and Version 9 of GitMigrationProposal

Show
Ignore:
Timestamp:
03/15/09 06:24:44 (4 years ago)
Author:
cdavid
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GitMigrationProposal

    v8 v9  
    66 
    77= Common scenario =  
     8 
     9Those scenario are the basics - they are written to minimize as much as possible disruption from the common svn workflows. They are not necessarily the best ways to do a specific task under git, but they are the least surprising for someone used to git. 
    810 
    911== Scenario 0: setting up git == 
     
    108110No, don't use git reset. Git reset can be used to revert changes, but can be dangerous to use, as it can also remove *commits*, not just changes. git reset is only useful for advanced usage of git. Use git stash or git co, not git reset. 
    109111 
     112== Scenario 4: simple commits, no branching == 
     113 
     114To do a commit, use the commit option: 
     115 
     116{{{ 
     117git commit -am "My commit." 
     118}}} 
     119 
     120The -m option has the same meaning as the svn commit command. The -a option "bypasses" the index, and tells git to commit all your changes. By default (without the "-a"), git only commits the changes you explicitly told him about with the add command (TODO: ref to git-specific workflows). 
    110121= Rationale for git =  
    111122