Git - Setup up Reomte Repository
From EdWiki
Revision as of 10:00, 23 June 2015 by Jshankar (Talk | contribs) (1 revision imported: EdWiki -- From Shukra)
Getting a Git Repository
- Cloning an Existing Repository
- If you want to get a copy of an existing Git Repository:
$ git clone gituser@shukra.cedt.iisc.ernet.in:/opt/gitrepo/my_project.git
- Creates a directory named my_project.
- Initializes a .git directory inside it.
- Pulls down all the data for that repository.
- Checks out a working copy of the latest version
- If you want to clone the repository into a directory named something other than my_project, you can specify that as the next command-line option:
git clone gituser@shukra.cedt.iisc.ernet.in:/opt/gitrepo/my_project.git our_project.
The target directory will be our_project