v e r s i o n c o n t r o l w i t h g i t
play

V e r s i o n C o n t r o l w i t h G i t a c - PowerPoint PPT Presentation

V e r s i o n C o n t r o l w i t h G i t a c c e l e r a t e d t u t o r i a l f o r b u s y a c a d e m i c s P i e r r e H a e s s i g C e n t r a l e S u p l e


  1. V e r s i o n C o n t r o l w i t h G i t a c c e l e r a t e d t u t o r i a l f o r b u s y a c a d e m i c s P i e r r e H a e s s i g C e n t r a l e S u p é l e c R e n n e s , J a n u a r y 2 4 , 2 0 1 8 2 / 2 6

  2. Wh y G i t ? s y s t e m : 1 ) V e r s i o n C o n t r o l k e e p t r a c k o f c h a n g e s ( h i s t o r y ) • G i t = m o s t p o p u l a r V C S s i n c e 2 0 1 0 • A l t e r n a t i v e s : S u b v e r s i o n ( s v n ) , Me r c u r i a l 2 ) C o l l a b o r a t i o n • P u b l i s h a n d o n t h e w e b - i n c l u d i n g t h e h i s t o r y - a l w a y s u p - t o - d a t e • C o l l a b o r a t e m a n a g e a s y n c h r o n o u s c o n t r i b u t i o n s , w i t h p o t e n t i a l c o n f l i c t s . 3 / 2 6

  3. O u t l i n e o f t h e t r a i n i n g : s i n g l e u s e r o n i t s l o c a l c o m p u t e r 1 ) P e r s o n a l w o r k w e e k - l o n g b r e a k o n t h e I n t e r n e t : h o s t e d G i t s e r v i c e s ( G i t H u b , G i t L a b ) 2 ) P u b l i s h w o r k : k e e p i n s y n c , m a n a g e c o n f l i c t s 3 ) C o l l a b o r a t i v e w o r k 4 / 2 6

  4. 1 ) P e r s o n a l w o r k s i n g l e u s e r o n i t s l o c a l c o m p u t e r ☻ , ( n o l e a k s o n a “ c l o u d ” ☹ ) b u t n o b a c k u p e i t h e r 5 / 2 6

  5. P e r s o n a l w o r k ( l o c a l c o m p u t e r ) ➔ S e tu i n g u p G i t : i n s t a l l a n d c o n f i g u r e ( o n c e p e r m a c h i n e ) ➔ I n i t i a l i z e a n e m p t y g i t r e p o s i t o r y , ➔ T : a d d c h a n g e s t o t h e s t a g i n g a r e a , c r e a t e c o m m i t s r a c k c h a n g e s ➔ C o m p a r e v e r s i o n s ( d i f ) a n d e x p l o r e t h e h i s t o r y ( l o g ) P r a c t i c e 1 b a s e d o n h tu p : / / s w c a r p e n t r y . g i t h u b . i o / g i t - n o v i c e / 6 / 2 6

  6. 1 e c S e tu i n g u p G i t i t c a r ( o n c e p e r m a c h i n e ) P ● I n s t a l l G i t . I n s t r u c t i o n s f o r Wi n d o w s : 1 ) f i r s t , G i t f o r Wi n d o w s h tu p : / / g i t f o r w i n d o w s . o r g / . O n p a g e , d o w n l o a d s h o u l d s t a r t a u t o m a t i c a l l y . h tu p s : / / g i t - s c m . c o m / d o w n l o a d / w i n 2 ) t h e n I s u g g e s t T o r t o i s e G i t a s a c o n v e n i e n t g r a p h i c a l t o o l h tu p s : / / t o r t o i s e g i t . o r g / ● C r e a t e e m p t y f o l d e r a n d o p e n “ G i t B a s h ” ● C o n f i g u r e i d e n t i t y : ( n a m e & e m a i l ) g i t c o n f i g 7 / 2 6 h tu p : / / s w c a r p e n t r y . g i t h u b . i o / g i t - n o v i c e / 0 2 - s e t u p /

  7. 1 e c i t C r e a t i n g a n ( e m p t y ) R e p o s i t o r y c a r P ● g i t i n i t ● → O b s e r v e n e w “ . g i t ” d i r e c t o r y ( u n h i d e h i d d e n f i l e s a n d f o l d e r s ) 8 / 2 6 h tu p : / / s w c a r p e n t r y . g i t h u b . i o / g i t - n o v i c e / 0 3 - c r e a t e /

  8. 1 e c i t T r a c k i n g c h a n g e s c a r P A c t i o n s : 1 ) P u t c h a n g e d f i l e s t o t h e s t a g i n g a r e a : g i t a d d 2 ) S a v e s t a g e d c o n t e n t a s a n e w c o m m i t : g i t c o m m i t C h e c k t h e S t a t u s o f t h e r e p o s i t o r y : g i t s t a t u s 9 / 2 6 h tu p : / / s w c a r p e n t r y . g i t h u b . i o / g i t - n o v i c e / 0 4 - c h a n g e s /

  9. 1 e c i t E x p l o r i n g H i s t o r y c a r P ● C o m p a r e v e r s i o n s ( d i fg ) : g i t d i f f – E x : g i t d i f f H E A D ~ 1 s c r i p t . m ● E x p l o r e t h e h i s t o r y ( t h e g r a p h o f a l l c o m m i t s ) : g i t l o g ( E a s i e r w i t h g r a p h i c a l t o o l s , c . f . n e x t ) 1 0 / 2 6 h tu p : / / s w c a r p e n t r y . g i t h u b . i o / g i t - n o v i c e / 0 5 - h i s t o r y /

  10. Wo r k s p a c e P l a c e s I n d e x / S t a g i n g a r e a L o c a l R e p o s i t o r y c o n f i g i n i t C o m m a n d s a d d g i t . . . c o m m i t s t a t u s d i f f l o g c h e c k o u t 1 1 / 2 6

  11. G r a p h i c a l G i t t o o l s ● ( T o o ) m a n y t o c h o o s e ! ● Wi n d o w s s h e l l : T o r t o i s e G i t ● I D E i n t e g r a t i o n : e . g . Ma t l a b 1 2 / 2 6

  12. T o r t o i s e G i t ● h tu p s : / / t o r t o i s e g i t . o r g / ● A “ Wi n d o w s S h e l l I n t e r f a c e ” , i . e . , i n t h e f i l e e x p l o r e r : “ r i g h t c l i c k ” → c o n t e x t me n u 1 3 / 2 6

  13. G i t i n Ma t l a b ● I n t e g r a t i o n i n t h e “ C u r r e n t F o l d e r ” p a n e l o f Ma t l a b D e s k t o p ● D e t a i l s i n d o c h tu p s : / / f r . m a t h w o r k s . c o m / h e l p / m a t l a b / s o u r c e - c o n t r o l . h t m l – e . g . h a n d l i n g o f b i n a r y f i l e s l i k e S i m u l i n k ’ s . s l x 1 4 / 2 6

  14. W e e k - l o n g b r e a k

  15. 2 ) w o r k o n t h e I n t e r n e t P u b l i s h H o s t e d G i t s e r v i c e s : G i t L a b ( a t C e n t r a l e S u p é l e c ) G i t H u b 1 6 / 2 6

  16. G i t L a b G i t L a b i n s t a n c e h o s t e d a t C S : h tu p s : / / g i t l a b . c e n t r a l e s u p e l e c . f r / L o g i n w i t h y o u r u s u a l L D A P u s e r n a m e 1 7 / 2 6

  17. P u b l i s h w o r k B a s e d o n t h e p r e v i o u s l y c r e a t e d l o c a l G i t r e p o s i t o r y ( P r a c t i c e 1 ) ➔ O n C e n t r a l e S u p é l e c G i t L a b w e b s i t e : c r e a t e a n e w r e p o s i t o r y . ➔ O n l o c a l c o m p u t e r , a d d a r e m o t e , t h e n p u s h t h e l o c a l c o m m i t s . ➔ O n G i t L a b : e x p l o r e t h e w e b i n t e r f a c e , l o o k a t t h e c o m m i t s . P r a c t i c e 2 b a s e d o n ( w i t h G i t L a b i n s t e a d ) 1 8 / 2 6 h tu p : / / s w c a r p e n t r y . g i t h u b . i o / g i t - n o v i c e / 0 7 - g i t h u b /

  18. 3 ) C o l l a b o r a t i v e w o r k “ H o w t o k e e p i n s y n c ? ” a n e x i s t i n g r e p o s i t o r y C l o n e ( f e t c h & m e r g e ) f r e s h c h a n g e s P u l l Ma n a g e p o t e n t i a l c o n f l i c t s 1 9 / 2 6

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend