< s t d i o . h > s t a t i c v o i d p r i n t S t r s ( ) { p r i n t f ( " f o o \ n " ) ; p r i n t f ( " b a r \ n " ) ; } i n t m a i n ( ) { p r i n t S t r s ( ) ; r e t u r n 0 ; }
< s t d i o . h > s t a t i c v o i d p r i n t S t r s ( ) { p r i n t f ( " f o o \ n " ) ; p r i n t f ( " b a r \ n " ) ; } s t a t i c v o i d c a l c ( ) { i n t i = 0 , t o t a l = 0 ; f o r ( i = 1 ; i < = 1 0 0 ; i + + ) { t o t a l = t o t a l + i ; } p r i n t f ( " t o t a l : % d \ n " , t o t a l ) ; } i n t m a i n ( ) { p r i n t S t r s ( ) ; c a l c ( ) ; r e t u r n 0 ; }
< s t d i o . h > s t a t i c v o i d p r i n t S t r s ( ) { p r i n t f ( " f o o \ n " ) ; p r i n t f ( " b a r \ n " ) ; } s t a t i c v o i d c a l c ( ) { i n t b o t t o m = 1 , t o p = 1 0 0 ; p r i n t f ( " t o t a l : % d \ n " , ( b o t t o m + t o p ) * t o p / 2 ) ; } i n t m a i n ( ) { p r i n t S t r s ( ) ; c a l c ( ) ; r e t u r n 0 ; }
│ ├ ─ ─ b r a n c h e s │ ├ ─ ─ C O M M I T _ E D I T M S G │ ├ ─ ─ c o n f i g │ ├ ─ ─ d e s c r i p t i o n │ ├ ─ ─ H E A D │ ├ ─ ─ h o o k s │ ├ ─ ─ i n d e x │ ├ ─ ─ i n f o │ ├ ─ ─ l o g s │ ├ ─ ─ o b j e c t s │ ├ ─ ─ O R I G _ H E A D │ ├ ─ ─ p a c k e d r e f s │ └ ─ ─ r e f s ├ ─ ─ . g i t i g n o r e └ ─ ─ h e l l o . c
- sends you commits to remote • $ git push bitbucket • $ git push github By default, you can only push to bare repository unless you config receive.denyCurrentBranch
on • Code review (pull request) • Merge/Split/Modify commits (git rebase -i) • Export an archive of specific commit/tag (git archive) • To trace who wrote the code which defect program (git blame) • Compare changes between two commits (git diff)