Git - New Repository

  1. SSH into the Dev server
  2. change dir to /srv/git
  3. mkdir repo-name.git
  4. cd repo-name.git
  5. git --bare init  
    That's 2 dashes there before bare Initializes a bare repository One of the cardinal rules of using git is that you should never push to a non-bare repository, as git's object database becomes out of sync and confused by the working copy.
  6. touch git-daemon-export-ok
    tell git daemon that it is meant to be public - this allows public usage from make files.

Git config commands

identifying yourself to Git (globally - for all projects)

git config --global "John Smith"
git config --global ""
To identify yourself differently to just one project:
git config --local "Joe Smith"
git config --local ""
Subscribe to RSS - git