Ada yang lebih aman, pake "git branch -t <nama local branch> <nama remote/svn branch>".
-t buat local branch ngetrack semua perubahan remote/svn branch. Setiap git-svn fetch (update informasi dari svn ke local data), semua informasi svn log akan ditarik ke local git. Assume: svn-trunk -> master svn-release -> release Kalo 'git-svn rebase' di master, dia cuma rebase metadata dan changes dari svn-trunk. Kalo 'git-svn rebase' di release, dia cuma rebase metadata dan changes dari svn-release. 2009/3/20 Arie Kusuma Atmaja <[email protected]>: > jawaban singkat: git branch -a (nama branchnya) > > jawaban ngelantur ngantuk: lanjut dibawah, tarik mang.. > > --- In [email protected], Rafeequl Rahman Awan <rafee...@...> wrote: > >> mau tanya tentang git dong, saya masih belajar2 pake git (baca: scm) ... >> gimana caranya pake git buat pindah2 branch SVN dan gimana cara make >> sure kalo kita lagi di branch tsb ? >> ada ref yang hrs saya baca ttg ini ? >> thanks ya :) > > Berikut adalah copy paste gimana buat make sure kalo kita lagi di branch ybs > berdasarkan ingatan gw doang :p jadi cmiiw aja buat yg sehari-harinya pake > git mulu' > > [...@hostfc10 bort]$ git checkout -b origin/fudge_bort > Switched to a new branch "origin/fudge_bort" > [...@hostfc10 bort]$ ls > app Capfile config db doc lib log public Rakefile README.textile > script spec stories test tmp vendor > [...@hostfc10 bort]$ git branch -a > master > * origin/fudge_bort > origin/HEAD > origin/fudge_bort > origin/master > origin/rumble_safe > [...@hostfc10 bort]$ git checkout -b origin/HEAD > Switched to a new branch "origin/HEAD" > [...@hostfc10 bort]$ git branch -a > master > * origin/HEAD > origin/fudge_bort > origin/HEAD > origin/fudge_bort > origin/master > origin/rumble_safe > [...@hostfc10 bort]$ ls > app Capfile config db doc lib log public Rakefile README.textile > script spec stories test tmp vendor > [...@hostfc10 bort]$ > > > > dari ls command kan keliatan kita sedang di branch itu (berubah dia). > > > berikut ini adalah link resource2x gratisan yang gak harus dibaca sih, > terserah weh atuh > > http://delicious.com/search?p=git&u=ariekusumaatmaja&chk=&context=userposts&fr=del_icio_us&lc=1 > > untuk yang berbayar, buku pragmatic versioning with git sangat berguna / tapi > jujur gw sendiri belum sukses2x masang git di server biar bisa jadi bandar > sih ihik. ajarin kalo ada yg bisa. > > http://ariekusumaatmaja.wordpress.com/about > > > > ------------------------------------ > > ID-Ruby > Berdiskusi dan belajar bersama Bahasa Pemrograman Ruby, termasuk segala > varian Ruby (JRuby, Rubinius, IronRuby, XRuby), dan program yang dibuat > dengan Ruby (Ruby on Rails, JRuby on Rails, Merb) > > http://rubyurl.com/Q8DD > http://news.gmane.org/gmane.comp.lang.ruby.region.indonesia > > Yahoo! Groups Links > > > > -- http://beol.laksmana.com/ http://www.plurk.com/user/beol Follow my plurk: http://plurk.com/redeemByURL?from_uid=787788&check=-300983041&s=1

