using jit

7 views
Skip to first unread message

Echo Yang

unread,
Dec 5, 2011, 9:21:18 PM12/5/11
to bbtco...@googlegroups.com
hello,

I put Sam's instructions together and if you are new to jit, I hope it can give you some help.

Yan Yang

====================================================================================== 

Preparation:

0. edit file: /etc/hosts, add one line
207.245.62.214 bbtcollege.com

1. edit or create file .gnomerc and add one line
export GIT_SSH=/usr/bin/ssh in file 

2. generate ssh key pair:
ssh-keygen -t rsa
attention: no passphrase is entered(Enter key should be pressed)
The public key will be saved in .ssh/id_rsa.pub

you should send to Sam the following info:

1). your user name:

2). project names: project name under eclipse: xx_hws 
 project name for UML: xx_uml

3). git pub key produced by ssh-keygen:
position: .ssh/id_rsa.pub

===============================================================================

git with a remote server(bbtcollege.com) with command:

0. install git under Ubuntu:
  sudo apt-get install git-core

1. push files to the remote server:
mkdir xx_uml
cd xx_uml
git init
touch test.txt
git add .
git commit -a -m "Initial import"
git remote add origin git...@bbtcollege.com:xx_uml.git
(Attention: keep login name gitosis unchanged, it is not your user name)
git push origin master

2. clone project to your pc from remove server:
delete the xx_uml dir at your pc
git clone git...@bbtcollege.com:xx.git

3. update project from remote server
git pull git...@bbtcollege.com:xx.git master

Now the passage between your pc and remote server is built

======================================================================

git with a remote server(bbtcollege.com) under eclipse:

1. install git plugin for eclipse
1) eclipse memu: Help -> Install new software...
2) Find more software by working with the "Available software Sites" preference
3) search "egit" and select the site then press ok
4) back to install window and select work with 
Eclipse Git Plugin Update Site - http://download.eclipse.org/egit/updates
5) select both Eclipse Git Team provider and JGit
6) select all the operations(or just Eclipse EGit & Eclipse Mylyn) then install

Attention: if you meet the following problem during the installation, install mylyn plugin first

  "Cannot complete the install because one or more required items could not be found.

  Software being installed: EGit Mylyn 1.1.0.201109151100-r (org.eclipse.egit.mylyn.feature.group 1.1.0.201109151100-r)
  Missing requirement: EGit Mylyn 1.1.0.201109151100-r (org.eclipse.egit.mylyn.feature.group 1.1.0.201109151100-r) requires 'org.eclipse.mylyn.team_feature.feature.group 3.5.0' but it could not be found"

2. create your own project
3. select "share project" and select "Git" plug-in to share the selected project
4. choose or create a new Repo
5. push your project to remote server:
right click on created project and select Team > Remote > Push...
custom URI:

6. clone repo from remote server: 
File > Import > Git > Git Repository
Destination: /home/xx/c++/xx_hws (where to put the project)



done!

tips: for not to write git host every time when you push your project, you can delete your local project and clone it from git remote server folowing the above procesures.


From now on, you can push your project to remote server by 

right click on project > team > commit
right click on project > team > push
====================================================================
reference:
git-tutorial.pdf

STUART WU

unread,
Dec 5, 2011, 9:41:37 PM12/5/11
to bbtco...@googlegroups.com
thanks a lot!


2011/12/5 Echo Yang <sleep...@gmail.com>

Peisheng YE

unread,
Dec 5, 2011, 9:58:14 PM12/5/11
to bbtco...@googlegroups.com
Thanks 很好。

tonyguo2010

unread,
Dec 6, 2011, 10:18:17 PM12/6/11
to bbtcollege

俄罗斯一名顾客发觉他从中国购买的500GB硬盘有异样,拿去修理。当修理人员拆开硬盘时,全体员工笑翻。原来硬盘是空心的,里头放有一块128MB卡,欺骗着把这片flash改成[循环复写]状态并改动了FAT表,这样在系统里会显示500GB容量,但当写入档案高于128MB时会自动从头复写

Image and video hosting by TinyPic

是不是很中国特色?

Gao jianchuan

unread,
Dec 7, 2011, 10:57:23 AM12/7/11
to BBTcollege
Very useful info.

Thank you so much.

> git remote add origin gito...@bbtcollege.com:xx_uml.git


> (Attention: keep login name gitosis unchanged, it is not your user name)
> git push origin master
>
> 2. clone project to your pc from remove server:
> delete the xx_uml dir at your pc

> git clone gito...@bbtcollege.com:xx.git


>
> 3. update project from remote server

> git pull gito...@bbtcollege.com:xx.git master


>
> Now the passage between your pc and remote server is built
>
> ======================================================================
>
> git with a remote server(bbtcollege.com) under eclipse:
>
> 1. install git plugin for eclipse
> 1) eclipse memu: Help -> Install new software...
> 2) Find more software by working with the "Available software Sites"
> preference
> 3) search "egit" and select the site then press ok
> 4) back to install window and select work with

> Eclipse Git Plugin Update Site -http://download.eclipse.org/egit/updates


> 5) select both Eclipse Git Team provider and JGit
> 6) select all the operations(or just Eclipse EGit & Eclipse Mylyn) then
> install
>
> Attention: if you meet the following problem during the installation,
> install mylyn plugin first
>
>   "Cannot complete the install because one or more required items could not
> be found.
>
>   Software being installed: EGit Mylyn 1.1.0.201109151100-r
> (org.eclipse.egit.mylyn.feature.group 1.1.0.201109151100-r)
>   Missing requirement: EGit Mylyn 1.1.0.201109151100-r
> (org.eclipse.egit.mylyn.feature.group 1.1.0.201109151100-r) requires
> 'org.eclipse.mylyn.team_feature.feature.group 3.5.0' but it could not be
> found"
>
> 2. create your own project
> 3. select "share project" and select "Git" plug-in to share the selected
> project
> 4. choose or create a new Repo
> 5. push your project to remote server:
> right click on created project and select Team > Remote > Push...
>  custom URI:

>   URI: ssh+git://gito...@bbtcollege.com/xx_hws.git


>
> 6. clone repo from remote server:
> File > Import > Git > Git Repository

> URI: ssh+git://gito...@bbtcollege.com/xx_hws.git

Reply all
Reply to author
Forward
0 new messages