Thursday, January 9, 2014

git commands for svn users


git commands for svn users:
http://blog.cyclogy.com/2011/05/05/git_subversion/

Well, actually I just wanted to know how to make my local repo up to date and at the same time disposing any changes on local repo, and here is the git command for it:

git clean -d -x -f
This will remove untracked files, including directories (-d) and files ignored by git (-x). Replace the -f argument with -n to perform a dry-run or -i for interactive mode and it will tell you what will be removed.