I want to create a backup repository that includes all git history before I restart a new project. I need to restruct our project but we want to create a repository for old git and work on new code at the same respoitory.
That is,
a. Local PC: source code version controlled with git@github.com:myaccount/current_project.git
b. github server: create a new repo named https://github.com/myaccount/backup_project
c. want to push Local PC's source code to the new repo named https://github.com/myaccount/backup_project
d. Keep the old git: git@github.com:myaccount/current_project.git
Assuming you have a githu account.
(1) Create a new repositoty for backup
Go to http://github.com/repositories/new
(2) Fill out the textbox on the page and URL for the new repository
For example: URL should be
https://github.com/myaccount/backup_project
(3) Make sure if you have a local repository for the current project. Thus, create a loal repository in case:
git clone git@github.com:myaccount/current_project.git current_project_01282010
(4)Then
cd current_project_01282010
git remote add origin git@github.com:myaccount/backup_project.git
(5) If it has a following error:
fatal: remote origin already exists.
cd config
vi config
Then, rename the origin to "git@github.com:myaccount/backup_project.git" from "git@github.com:myaccount/current_project.git"
(6) at gihub.com/myaccount/backup_project.git, don't forget to add your local account as Repository Collaborators.
(7) push your local repository to git@github.com:myaccount/backup_project.git
git push origin master
Thursday, January 28, 2010
Monday, December 21, 2009
Introduction to Cloud Computing
Jongwook Woo, California State University, Los Angeles
Introduction to Cloud Computing, the 10th KOCSEA 2009 Symposium, UNLV,
Dec 18-19, 2009
Introduction to Cloud Computing, the 10th KOCSEA 2009 Symposium, UNLV,
Dec 18-19, 2009
Labels:
amazon ec2 and s3,
cloud computing,
hadoop,
map/reduce,
reduce
Tuesday, August 11, 2009
Set up Hadoop in Eclipse
Set up Hadoop in Eclipse
Hadoop on Windows with Eclipse
Hadoop Example: MyMaxTemperatureWithCombiner
Set up Hadoop in Eclipse
Hadoop on Windows with EclipseHadoop Example
MyMaxTemperatureWithCombiner.java,
MaxTemperatureMapper.java,
MaxTemperatureReducer.java
How to run the example codes:- You need to set up Hadoop as shown above (Set up Hadoop in Eclipse)
- make a directory named "tempIn" at your hadoop:
bin/hadoop fs -mkdir tempIn - copy input files 1901 and
1902 to your HDF:
bin/hadoop fs -cp 1901 tempIn/
bin/hadoop fs -cp 1902 tempIn/ - In the eclipse IDE, imports three java files above under package named "edu.calstatela.hipic.hadoop.util"
- Start Hadoop cluster as shown above (Set up Hadoop in Eclipse)
- In the eclipse IDE, Right click on
MyMaxTemperatureWithCombiner.java, choose "Run as" > "Run Hadoop
Application" - You will see the map/reduce results at the HDF folder "tempOut"
in DFS Location of eclipse IDE
Subscribe to:
Posts (Atom)