Can any one tell me how I can pull data from remote repository (custom branch) with Python? Im currently using GitPython...
            Asked
            
        
        
            Active
            
        
            Viewed 1,360 times
        
    2 Answers
2
            You can use the python dulwich package.
Check out this question for some direction: Programmatically `git checkout .` with dulwich
 
    
    
        Community
        
- 1
- 1
 
    
    
        Sam Mirrado
        
- 336
- 1
- 2
- 9
1
            
            
        repo = Repo.clone_from("path/of/repo/to/pull", "path/of/clone")
This function is described more precisely in the docs.
.
In order to pull the latest, you should use the pull GitPython command:
repo.pull()
by default this should use the paths specified on instantiation as <src>:<dst>.
 
    
    
        Community
        
- 1
- 1
 
    
    
        Andy Hayden
        
- 359,921
- 101
- 625
- 535
- 
                    I have already cloned repo in my local directory... all I wan to do is: *git pull origin turbo_branch* not in console but with GitPython – Marcin Petrów Sep 03 '12 at 09:46
