sudo apt-get install git-coreadd user name and email
git config --global user.name "name"
git config --global user.email "email id"go to the project folder and
cd project folderwe can see our config file by typing this
cat /project folder/.config/we can enable command colors by using
git config --global color.ui truewe go to folder and initialize the project repository.
git init
git commit
git commit -m ' comment'
git add now we can use following commands
git diff --cached
git log finally update the server info
sudo -u git update-server-info now we have access to repository .we can use commit pull push command
For instance http://localhost/efp/.git/
I found some useful resources
http://git.or.cz/course/svn.html
http://sysmonblog.co.uk/misc/git_by_example/
http://www.kernel.org/pub/software/scm/git/docs/user-manual.html
No comments:
Post a Comment