Showing posts with label Git. Show all posts
Showing posts with label Git. Show all posts
Tuesday, December 27, 2011
Example of Git config file, .gitconfig
[user]
name = Haris
email = haris@xxx.xxx
[core]
excludesfile = /Users/haris/.gitignore
[alias]
st = status
c = commit
co = checkout
br = branch
Ignore (modified) repository file with Git
So here is a problem, after you add something to git repository you have to remove it so you can ignore it. Problem with this is sometimes you want to ignore file but not remove it from repository. For example I am using RoR on windows and rest team is using MaxOS, so I should not commit Gemfile.lock but I cannot remove it either here is a way:
git update-index --assume-unchanged Gemfile.lock
or you can do same with directory
git update-index --assume-unchanged log
Subscribe to:
Posts (Atom)