Link to git repository: https://code.google.com/p/trefliq ...

foreheadsobstinacyΛογισμικό & κατασκευή λογ/κού

15 Αυγ 2012 (πριν από 5 χρόνια και 3 μήνες)

301 εμφανίσεις

Link

to

git

repository:

https://code.google.com/p/trefliq



Directions

for

setting

up

netbeans

and

git

to

work

together.

This

will

only

work

with

netbeans

7.1

(
not

7.0.1!
).


(0.)

I'm

pretty

sure

you

have

to

act
ually

install

git

before

using

it

in

netbeans,

although

Windows

users

might

not

have

to.

See

http://help.github.com/win
-
set
-
up
-
git/
,

which

links

to

http://code.google.com/p/msysgit/downloads/list
,

which

is

what

you

really

want

to

install

(but

the

github

link

has

good

install

instructions).

1.

Log

into

your

google

account

and

then

go

to

the

git

repository:

https://code.google.com/p/trefliq


2.

Once

you're

on

the

TreFliq

main

page,

click

on


Source

to

see

some

helpful

info

for

setting

up

netbeans/git.

In

particular,

make

sure

to

click

on


googlecode.com

password

to

get

a

password

to

use

(write

it

down),

so

you

don't

have

to

give

git

or

netbeans

your

actual

google

account

password.

Keep

this

page

handy.

3.

Open

up

netbeans

and

click

Team

/

Git

/

Clone...



The

repository

URL

is

above

in

#1

and

at

the

top

of

this

doc.



The

User

is

your

google

account

nam
e

(email)

without

the


@gmail.com

bit.



Enter

the

password

from

step

#2.

I

had

some

strange

issues

on

linux

(kubuntu

11.10)

trying

to

get

netbeans

to

save

it

for

me,

so

you

may

want

to

just

enter

it

by

hand

for

now.



Click

Next.

Select


master

then

click

Next

again.



Choose

a

location,

and

for

the

Remote

Name,

make

sure

it

says


origin

.

Then

click

Finish.

4.

If

it

succeeds,

it

should

tell

you.

You

should

now

have

a

clone

of

the

git

repository

on

your

local

machine.


5.

I've

got

a

test

project

called


Netbean
sTest
” (under the “gittestarea” subdirectory)
that

you

can

open

up

to

practice

using

netbeans

and

git.

Open

up

that

project

and

make

all

the

changes

you

want:

add

a

class,

add

a

unit

test

(unit

tests

are

set

up

very

easily

for

you

in

netbeans),

even

addin
g

files

and

commiting

them

to

your

local

repository.

(See

http://git
-
scm.com/documentation

for

all

your

git

needs.

A

good

intro

article

is

here:

www.linuxjournal.com/content/git
-
revision
-
control
-
perfected
.)




The

easiest

way

to

see

all

of

your

changes

is

to

click

on

the

project

name

in

the

project

pane

to

give

it

focus,

then

click

the

main

menu

Team

/

Show

changes.

All

of

you
r

changes

should

be

listed

in

the

output

window

below

in

the

Git

window.

(You

may

have

to

click

on

the

buttons

just

under


Test

Results

in

order

to

see

your

changes.

Hover

over

them

to

see

what

they

mean.)

Here

you

can

double

click

on

each

file

to

cycl
e

through

all

of

your

changes.




To

stage

your

changes

prior

to

committing,

select

all

the

files

in

the

git

changes

window,

then

right
-
click

and

select

Add.

You

can

also

remove

things

from

the

staging

area

if

you

want.




To

commit

all

the

changes

in

the

s
taging

area

(remember

this

only

commits

locally),

select

the

files

to

commit,

right
-
click

and

select

Commit.

Make

sure

to

enter

a

check
-
in

comment

for

every

commit.

6.

To

push

your

committed

changes

back

up

to

the

google

repository,

click

on

Team

/

Git

/

Rem
ote

/

Push.

A

wizard

similar

to

the

Clone

wizard

will

come

up.



You

should

enter

the

information

in

the

same

way

as

in

step

#3

above.

Alternately,

you

might

try

using

the


Select

Configured

Git

Repository

Location

if

you

think

Netbeans

successfully

saved

your

password.




Select

the

master

branch

and

click

Next.



Your

changes

should

get

pushed

up

to

google.

You

can

go

back

to

the

googlecode

project

main

page,

browse

your

changes

and

you

should

see

them

there.



(Alternatively, the command
-
line way to push ch
anges is to use “git push origin
master”. Just FYI in case you prefer the command
-
line.)


Happy

coding!



-
Mike