Changes between Version 8 and Version 9 of GitMigrationProposal
- Timestamp:
- 03/15/09 06:24:44 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GitMigrationProposal
v8 v9 6 6 7 7 = Common scenario = 8 9 Those 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. 8 10 9 11 == Scenario 0: setting up git == … … 108 110 No, 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. 109 111 112 == Scenario 4: simple commits, no branching == 113 114 To do a commit, use the commit option: 115 116 {{{ 117 git commit -am "My commit." 118 }}} 119 120 The -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). 110 121 = Rationale for git = 111 122
