...
Most OpenMRS developers are comfortable with subversion and haven't had as much experience with Git. While there are a number of good tutorials on Git, we wanted to provide a quick reference for our developers.
Table of Contents |
---|
Help
Git | SVN |
---|---|
| |
View content of remote repository (svn list)
Git | SVN |
---|---|
| |
You can browse files in your local repository with git show
or git ls-files
.
...
Git | SVN |
---|---|
| |
Get updates
Git | SVN |
---|---|
| |
Compare working copy to head (what have I changed?)
Git | SVN |
---|---|
| |
Add new file(s)/folder(s) to version control
Git | SVN |
---|---|
| |
Delete file(s)/folder(s)
Git | SVN |
---|---|
| |
Ignore certain file(s)/folder(s)
Git | SVN |
---|---|
| |
Commit changes with comment (all or some of changes in working copy)
Git | SVN |
---|---|
| |
Get basic information about working copy (svn info)
Git | SVN |
---|---|
| |
Revert changes (all or some changes in working copy)
Git | SVN |
---|---|
| |
Create a patch (diff of working copy from head)
Git | SVN |
---|---|
| |
Apply a patch
Git | SVN |
---|---|
| |
Resolve conflicts
Git | SVN |
---|---|
| |
Create a branch (e.g., space for new module)
Git | SVN |
---|---|
| |
Close a branch
Git | SVN |
---|---|
| |
Tag a release
Git | SVN |
---|---|
| |
Switch working copy to new SVN location
Git | SVN |
---|---|
| |
Detach working copy
Git | SVN |
---|---|
| |
Blame (show annotations / show who changed what line in what commit)
Git | SVN |
---|---|
| |
Show history
Git | SVN |
---|---|
| |
Switch to earlier revision
Git | SVN |
---|---|
| |
Correct/change old commit message
Git | SVN |
---|---|
| |