COMANDOS SVN VS GIT

CommandOperationSubversion
git cloneCopy a repositorysvn checkout
git commitRecord changes to file historysvn commit
git showView commit detailssvn cat
git statusConfirm statussvn status
git diffCheck differencessvn diff
git logCheck logsvn log
git addAdditionsvn add
git mvMovesvn mv
git rmDeletesvn rm
git checkoutCancel changesvn revert1
git resetCancel changesvn revert1
git branchMake a branchsvn copy2
git checkoutSwitch branchsvn switch
git mergeMergesvn merge
git tagCreate a tagsvn copy2
git pullUpdatesvn update
git fetchUpdatesvn update
git pushIt is reflected on the remotesvn commit3
gitignoreIgnore file list.svnignore
  1. Revert in SVN is the cancel of change, but Revert in Git is the commit for negation. The meanings of Revert are different.
  2. Branch and tag are the same in the structure in SVN, but they are clearly different in Git
  3. SVN does not have the concept of local repository/remote repository, accordingly commit is directly reflected in the remote. However, Git has different reflecting methods for reflecting to the local repository and for reflecting to the remote repository.
GUIA COMANDOS MAS COMUNES

1. Para descargar todo el repositorio usar:
    > svn checkout URL

2. Para descargarte los cambios posteriormente
    > svn update

* Al hacer update se mostraran los siguientes abreviaturas:
   A: Añadido
   D: Borrado
   U: Actualizado
   C: En conflicto
   G: Fusionado

2.1. Al hacer el update puede que en algunos casos te resulte conflictos, estos conflictos deben corregirse en el archivo y luego se deben marcar como resuelto.
    >svn remove --force "filename" (Eliminar un archivo)
    >svn resolve --accept=working "filename" (marcar como resuelto)
    

3. Para agregar tus cambios
    > svn add . --force
    > svn add * (agregar todos los cambio inclusive los de Ignore)

4. Para remover cualquier agregado incorrecto
    > svn revert --recursive folder_name  (revert folder)
    > svn revert "src/@shared/folder_name@"  (revert single file)

* si tienes un @ (arroba) en folder_name, y te sale error, tienes que agregar un @ al final de la sentencia.
(tener mucho cuidado de revertir solo lo que se desea, si le pones en folder_name * se borrara cualquier cambio que se haya hecho en el archivo)
 
5. Para confirmar los cambios
    > svn commit -m "Cambios"

6. Para ignorar archivos existen:
   > svn propset svn:ignore "nombreArchivo/nombreCarpeta" . (*)
   > svn propset svn:ignore -F ".svnignore" . (**)

(*) ignora un solo archivo en especifico
(**) ignora múltiples archivos o folders, de acuerdo a lo que se incluya en el archivo .svnignore

7. Agregar cambios que se han eliminado
   > svn delete "miArchivo.txt"