David Sowder | Cheatsheet | Subversion to Git
Subversion | Git | Notes |
---|---|---|
svn diff -r | git diff FETCH_HEAD | Compare with the last fetched remote version of the item; doesn't really make sense for Subversion, but well, this is a 'cheat' sheet... |
svn info | git remote show origin | https://stackoverflow.com/questions/924574/git-alternatives-to-svn-info-that-can-be-included-in-a-build-for-traceability |
svn merge -c | git revert | https://dev.tiki.org/Git-concepts-for-SVN-users |
svn revert | git checkout | https://mallibone.wordpress.com/2011/03/21/svn-revert-equal-in-git/ |
svn relocate svn switch --relocate |
git remote --set-url origin | https://stackoverflow.com/questions/2432764/how-to-change-the-uri-url-for-a-remote-git-repository https://devconnected.com/how-to-change-git-remote-origin/ |
ls tags/ | git tag | https://git-scm.com/book/en/v2/Git-Basics-Tagging |
cd tags/v2.1.42 | git checkout v2.1.42 | https://git-scm.com/book/en/v2/Git-Basics-Tagging |