Posted by & filed under Programming, Server Admin.

new git project initialization

In your project’s directory where projectname is the name of your project:

git init
git add .
git commit -am ‘Initial codebase commit’
git remote add origin git@monitor.tnsc.net:projectname
git push origin master

create new git branch
Get a initial copy of the git repo
git clone…

Switch to the new branch
git checkout newbranchname

Make changes and commit
git commit -am “Commit…”

Push branch to the remote
git push origin newgranchname

=================================
Managing git user access and projects thru gitosis
on monolith edit /home/gitosis/gitosis.conf

Chmod a+rx the repo inside /home/git/repositories so gitweb can view

Git CheatSheet help.github.com/git-cheat-sheets/

Leave a Reply

You must be logged in to post a comment.