[Javalist] Git - Eclipse

zamek zamek at vili.pmmf.hu
2012. Jan. 31., K, 21:03:28 CET


hello,

01/31/2012 03:40 PM keltezéssel, Istvan Verhas írta:
> A git-t én nem command line-ból használom, hanem sourcetree-vel igaz csak mac-en megy. A git-el egyébként ugyanaz a gondom megvan mint az svn-el, hogy ha elkezdek fejleszteni lokálisan egy nem version kontroll alatt álló könyvtárban akkor azt nem bírom normálisan hozzáadni a remote repo-hoz csak egy checkout után lokális másolással. Ezzel együtt tudok élni csak fura.
>

zamek at zamek:~/temp/git-test$ git init
Initialized empty Git repository in /home/zamek/temp/git-test/.git/

zamek at zamek:/home/git$ ./create-repo git-test 
<-------------------------- remote repo: /home/git
creating repository git-test...
Initialized empty Git repository in /home/git/git-test/


zamek at zamek:~/temp/git-test$ git remote add origin  /home/git/git-test/
zamek at zamek:~/temp/git-test$ touch 1.c
zamek at zamek:~/temp/git-test$ git add --all
zamek at zamek:~/temp/git-test$ git commit -am "enter repo" <----- 1.c a 
.git repoban

zamek at zamek:~/temp/git-test$ git push origin master <------ remote repoba
Counting objects: 3, done.
Writing objects: 100% (3/3), 224 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (3/3), done.
To /home/git/git-test/
  * [new branch]      master -> master


zamek at zamek:~/temp/git-test$ mkdir local <---- uj konyvtar
zamek at zamek:~/temp/git-test$ git add --all
zamek at zamek:~/temp/git-test$ git commit -am "local dir adding" <---- uj 
konyvtar bekerul a .git repo-ba
[master 31f3242] local repo adding
  1 files changed, 5 insertions(+), 0 deletions(-)
  create mode 100644 2.c
zamek at zamek:~/temp/git-test$ git push origin master <------- megy remote 
repoba
Counting objects: 4, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 281 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (3/3), done.
To /home/git/git-test/
    dad41b1..31f3242  master -> master
zamek at zamek:~/temp/git-test$

Vagy ugy erted, hogy az uj nem verzio kontroll alatt levo konyvtar nem a 
.git melletti konyvtarbol nyilik?

-- 
  thx,
----------------------------------
Zoltan Zidarics programmer
PTE-PMMFK H-7621 Pecs, Boszorkany u. 2. Hungary
E-Mail: zamek at vili.pmmf.hu
----------------------------------
       



További információk a(z) Javalist levelezőlistáról