I like how you can see what went into a git with git show rev
I haven't found an equivalent in Subversion. It seems Subversion wants you to do a diff between two commits to get anything reasonable.
Am I mistaken, or is there an equivalent to git show in svn to just see what went into a commit?
git clone is more of an analogue to svn checkout than git checkout . git checkout just checks out a branch or commit from your local repository. git clone makes a new copy of a remote repository. +1, Just to emphasize, in 99% of case you'd do an svn checkout you'd need a git clone .
DESCRIPTION. git svn is a simple conduit for changesets between Subversion and Git. It provides a bidirectional flow of changes between a Subversion and a Git repository. git svn can track a standard Subversion repository, following the common "trunk/branches/tags" layout, with the --stdlayout option.
SVN is better than Git for architecture performance, binary files, and usability. And it may be better for access control and auditability, based on your needs.
svn diff -c rev
will show what changes happened in the specified revision.
svn log --diff -c rev
will show the diff and the commit information.
I take it you want to see not the list of files in the commit, but the contents of a file itself as it was in the commit. You can do this with svn cat -r rev filename
, where "rev" is the revision number and "filename" is the path or URL to the file. Check svn help cat
for more info.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With