I want to do a Diff between a locally commited change and between the SVN commited last change. i.e. HEAD and what is on SVN Master trunk.
what would be the suitable command?
Cheers
The difference between Git and SVN version control systems is that Git is a distributed version control system, whereas SVN is a centralized version control system. Git uses multiple repositories including a centralized repository and server, as well as some local repositories.
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.
Trunk-based development is a branching model that is also referred to as “mainline development.” All branches extend from one trunk/main branch, usually called the master branch. This persistent branch is where all developers commit. The master branch follows the evolution of a software project.
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 .
I assume you're talking about git-svn:
$ git-svn fetch # get the latest from svn, without merging yet
$ git diff ..remotes/git-svn # or <treeish>..remotes/git-svn
I don't know if remotes/git-svn
can be somewhere else. Check with git branch -a
.
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