Showing posts with label SVN. Show all posts
Showing posts with label SVN. Show all posts

Thursday, 24 February 2022

SVN && GIT References, SVN Show local, remote status

 // show local status

svn status

// show remote status

svn status --show-updates

https://stackoverflow.com/questions/8258991/can-you-svn-status-the-remote-repository-instead-of-you-local-working-copy/8259277



// SVN && GIT command refernce list


https://backlog.com/git-tutorial/reference/commands/

Tuesday, 4 January 2022

SVN status exclation mark ! meaning file on remote but not local

 https://stackoverflow.com/questions/3389620/how-to-fix-subversion-status

// Remove file on local

svn rm /path/to/file      # if you want to delete it from svn itself
// commit
svn commit -m '...'

Wednesday, 15 December 2021

How to set apache subversion

 https://www.howtoforge.com/tutorial/subversion-svn-with-apache-and-letsencrypt-on-centos/

Wednesday, 28 July 2021

GIT VS SVN Commands

 https://backlog.com/git-tutorial/reference/commands/


Comparison table of Git-Subversion commands

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.



Thursday, 20 May 2021

SVN Installation on Ubuntu, CommandLine usage

 Install SVN 

https://askubuntu.com/questions/258151/how-can-i-install-subversion-client-in-ubuntu

Your question in fact contains the answer.

     sudo apt-get update (update system repo)

  1. Install the subversion commandline tool using sudo apt-get install subversion.
  2. Use the client by typing the command svn command [options] [args].
  3. Do not do anything else. The server will not start and you can happily use the client without the server. You will also not have GUI access.


SVN Command (Checkout, commit with no new file, commit with file)

https://stackoverflow.com/questions/817987/how-to-commit-changes-after-svn-import#:~:text=After%20you%20change%20a%20file,Repository%20in%20the%20SVN%20Book.&text=which%20will%20checkout%20trunk%20from,Make%20changed%20and%20then%20do.

    SVN checkout remote repo to local
    svn checkout http://some.repository.net/trunk/ /my/local/path/to/workingcopy

SVN commit to remote repo from local without new files added on local
svn commit -m "A comment telling what you did the which file"

SVN commit to remote repo from local with new files added

or if you added some files to the working copy do:

svn add /path/to/file /path/to/otherfile

or

svn add /path/to/dir --force

which will add everything in the directory and all of it's subdirectories to the working copy, and finally

svn commit -m "who did what why"