Setup "user" part of config. The commands modify the ~/.gitconfig file.
- $ git config --global branch.autosetupmerge auto
- $ git config --global user.name "Your Name Comes Here"
- $ git config --global user.email you@yourdomain.example.com
Create a git repo for newProject:
- $ cd newProject
- $ git init
- $ git add .
- $ git commit
- $ cd ..
- $ git clone --bare newProject newProject.git
- $ touch newProject.git/git-daemon-export-ok
- $ rsync -avz newProject.git central-repo:/home/repo/git/
- $ cd "newProject parent directory"
- $ git clone ssh://central-repo/home/repo/git/newProject.git
Use a newProject git repo:
- $ git clone ssh://central-repo/home/repo/git/newProject.git
- keep updated (sort of like cvs up)
- $ cd newProject
- $ git pull
Work on newProject:
- $ cd newProject
- $ git status
- $ git diff
- $ git-commit -a
- $ git-push
For color diff, I set the following in ~/.gitconfig
[color]
diff = auto
[core]
pager =
Run below for central svn behavior
- $ git config --global branch.autosetupmerge auto
- $ git checkout --track -b master origin/master