You are on page 1of 2

Close Window

Git Repositories
Introduction, Authentication, Cloning, Importing, Additional Resources

Introduction
Git is a distributed version control system, originally developed by Linus Torvalds for Linux kernel development. It has
grown over the years to serve as the development platform for many other very large and active open source projects. It
has grown for a very simple reason: it is excellent.
Once you have the Git client installed on your development machine, accessing your repository is simple.
Unfuddle Git repositories are, by default, accessed via HTTPS (SSL). If you need to access your Git repository via SSH,
please see our Git over SSH instructions (git_access_ssh?repository=42).

Authentication
You will need to enter your username and password for every pull or push. However, if you wish to automatically
authenticate, you can add the following lines to your ~/.netrc(Linux and Mac OS) or C:\Users\Name\_netrc
(Windows) file:
machinepaytm.unfuddle.com
loginusername
passwordpassword

NOTE: username and password must be replaced with values appropriate to your account. Also, be sure to modify the
~/.netrcfile permissions so that is visible only to you, since the password is stored in plain text.

Cloning
If your Git repository has already been populated with some commits, then it is now possible to clone that repository onto
any number of machines.
$gitclonehttps://paytm.unfuddle.com/git/paytm_wallet/

Importing
Local Repository Creation
If you are loading up your Git repository for the first time, you will first need to create a local Git repository on your
machine by doing the following:
$mkdir/path/to/repository
$cd/path/to/repository
$gitinit

Once you have created a Git repository, it's time associate the Unfuddle repository with your local one and designate it as
an upstream server.
$cd/path/to/repository
$gitremoteaddunfuddlehttps://paytm.unfuddle.com/git/paytm_wallet/
$gitconfigremote.unfuddle.pushrefs/heads/master:refs/heads/master

Before you can push your code to the Unfuddle repository you must be sure to add your files to the local index then
commit them.
$gitadd*
$gitcommitam'initialcommit'

Finally, you are now ready to push any locally made commits to your newly created Unfuddle Git repository.
$gitpushunfuddlemaster

Congratulations! You should now see all of your commits and files within your Unfuddle repository up online. Other
members of your project may now clone the repository.
NOTE: if the amount of data you push exceeds Gits http post buffer size, an error occurs. To fix this, run this command
that will increase it to 500MB:
$gitconfighttp.postBuffer524288000

Additional Resources
For more information on how to get the most out of Git, we recommend some of the following resources:

Unfuddle: Migrating a Subversion Repository to Git


(https://unfuddle.com/docs/topics/subversion_git_migration)
PeepCode: Git Screencast (http://peepcode.com/products/git)
PeepCode: Git Internals PDF (http://peepcode.com/products/git-internals-pdf)
The Official Git Site (http://git.or.cz)
2006-2013 Unfuddle LLC (http://unfuddle.com). All rights reserved.
Terms of Service (/support/terms_of_service). Privacy Policy (/support/privacy_policy).

You might also like