 package
    
    
    
      package
    
    
      
        
      
    
   
    
      
  
    
      
  
    
      Version: 
        v4.0.0+incompatible
    
    
      Opens a new window with list of versions in this module.
    
    
    
  
      
  
    Published: Jan  8, 2018
  
      
  
    License: Apache-2.0
      
    
  
  
    Opens a new window with license information.
  
      
        
  
    
      Imports: 3
    
  
  
    Opens a new window with list of imports.
  
        
  
    
       Imported by: 0
    
  
  
    Opens a new window with list of known importers.
  
      
    
   
  
  
    
   
    
      
    
    
    
  
    
      
        
  
    
       README
      ¶
      README
      ¶
    
    
      
        go-git: examples
Here you can find a list of annotated go-git examples:
Basic
- showcase - A small showcase of the capabilities of go-git
- open - Opening a existing repository cloned by git
- clone - Cloning a repository
- clone with context - Cloning a repository with graceful cancellation.
- log - Emulate git logcommand output iterating all the commit history from HEAD reference
- remotes - Working with remotes: adding, removing, etc
- progress - Printing the progress information from the sideband
- push - Push repository to default remote (origin)
- checkout - Check out a specific commit from a repository
- tag - List/print repository tags
- pull - Pull changes from a remote repository
- revision - Solve a revision into a commit
Advanced
- custom_http - Replacing the HTTP client using a custom one
- storage - Implementing a custom storage system
 
      
      
    
   
      
      
        
          
  
    
       Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    
      
        
 
  
  
  
  
  
	  
  
  
    
    
    
  CheckArgs should be used to ensure the right command line arguments are
passed before executing an example.
  
         
	  
  
  
    
    
    
      func CheckIfError(err error)
     
  CheckIfError should be used to naively panics if an error is not nil.
  
         
	  
  
  
    
    
    
      func Info(format string, args ...interface{})
     
  Info should be used to describe the example commands that are about to run.
  
         
	  
  
  
    
    
    
      func Warning(format string, args ...interface{})
     
  Warning should be used to display a warning
  
         
  
    
      
     
   
        
      
      
        
  
    
       Source Files
      ¶
      Source Files
      ¶
    
   
      
      
        
  
    
       Directories
      ¶
      Directories
      ¶
    
    
    
   
      
     
   
   Click to show internal directories. 
   Click to hide internal directories.