Category Archives: Git

Git Config Tips

To use co in place of the more verbose checkout command: $ git config –global alias.co checkout   Set the editor Git will use for commit messages. If you use a graphical editor such as Sublime Text, TextMate, gVim, or … Continue reading

Posted in Git | Tagged , | Leave a comment

Git: Tagging and pushing to remote

I’ve had to look this up a couple times. Annonated Tag git tag -a [tagname] -m ‘MESSAGE’ To Push to Server git push origin [tagname] Annotated tags, however, are stored as full objects in the Git database. They’re checksummed; contain … Continue reading

Posted in Git | Tagged , , , | Leave a comment

Git: git push -> No refs in common and none specified; doing nothing

If you see the error message, No refs in common and none specified; doing nothing Perhaps you should specify a branch such as ‘master’. fatal: The remote end hung up unexpectedly It is probably because you cloned an empty repository … Continue reading

Posted in Git, troubleshooting | Tagged , , , | 2 Comments

Gitolite: Log all access? Not Possible

In short, Gitolite is not able to log a clone or fetch access. https://groups.google.com/forum/?hl=en&fromgroups=#!topic/gitolite/g7mO2VDQza0 There is a workaround that may work courtesy of Sandeep Kaira. His email to me after I posted on the gitolite newsgroup: I noticed that SSL … Continue reading

Posted in Git | Tagged , , , | Leave a comment

Gitolite: add new repository

I enable certain users to create repositories by adding this to gitolite.conf file: repo [a-zA-Z0-9].* C = @admin @staff RW+ = CREATOR RW = WRITERS @admin R = READERS @staff To create a new repo I had to do this: … Continue reading

Posted in Git | Tagged , , , , , | 3 Comments

Gitolite: add users and multipe keys per user

Figuring out why I was having trouble adding a user was pretty upsetting so I will share the experience and hope no one else runs into it also. Create the ssh key for user ssh-keygen -t rsa Do no try … Continue reading

Posted in Git | Tagged , , , , | 1 Comment

Gitolite v3 – add email hook

I added the email hook by changing files on the git server. gitolite@gitserver~$ cd .gitolite/hooks/common gitolite@gitserver:~/.gitolite/hooks/common$ cp /usr/share/doc/git/contrib/hooks/post-receive-email post-receive gitolite@gitserver:~/.gitolite/hooks/common$ $HOME/bin/gitolite setup –hooks-only gitolite@gitserver:~/.gitolite/hooks/common$ cd gitolite@gitserver:~$ vi .gitolite.rc #GIT_CONFIG_KEYS => ”, # ORIGINAL GIT_CONFIG_KEYS => ‘.*’, # EDIT TO THIS … Continue reading

Posted in Git | Tagged , , , | 1 Comment

Install a Git Server Gitolite v3

Looking into installing our own Git Server. Probably going with Gitolite. Did a test run on my dev Linux box got environment setup, but having some trouble adding users and initial repository. Company gave me a Windows server to working. … Continue reading

Posted in Git | Tagged , , , , | Leave a comment

Git, a VCS

Noticed that Git is the new king of VCS . Downloaded Git and installed it and going through the manual. http://progit.org/book/ch1-3.html The KEY difference with Git is that most operations are local.  Operations like diff ing between previous version of … Continue reading

Posted in Git | Leave a comment