Saturday, January 18, 2014

Git and svn commands

Git

Local configuration file

Keep local changes in e.g. a configuration file and avoid showing it on git status

Set the bit: git update-index --skip-worktree FILENAME
remove the bit: git update-index --no-skip-worktree FILENAME

To list all files with this bit set:

git ls-files -v | grep ^S

Clone with username

git clone https://username@github.com/username/repository.git


Git svn


To push changes to repo:
git svn dcommit

to pull changes from repo:
git svn rebase