Tag 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

RoR 4.0.2 issues

gem “mongoid”, github: “mongoid/mongoid” kept giving me the error: fatal: read error: Connection reset by peer Git error: command `git clone ‘git://github.com/mongoid/mongoid.git’ “/home/mfang/.rvm/gems/ruby-2.1.0/cache/bundler/git/mongoid-176c799a8a4589043b073e277e545d697119fa82” –bare –no-hardlinks` in directory /home/mfang/dev/ror/aws-iar_mygitstation has failed. Changed it to gem “mongoid”,  :git => ‘https://github.com/mongoid/mongoid.git’ Now it … Continue reading

Posted in RoR | 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: 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

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