microsoft / PowerShellForGitHub

Microsoft PowerShell wrapper for GitHub API
Other
584 stars 184 forks source link

How to clone repo and push to master. #318

Closed Panzerbjrn closed 3 years ago

Panzerbjrn commented 3 years ago

A description of your problem or question

I am trying to download/clone a repo, so I can update it and then push it to master.

Steps to reproduce the issue

N/A It isn't a problem as such, more a question about functionality. I looked at

Get-Command -Module PowerShellForGitHub -Name *clone*
Get-Command -Module PowerShellForGitHub -Name *repo*

And neither those nor the documentation here really seemed to indicate that this was possible.

New-GitHubPullRequest seems to push to a branch, but the Get-Help doesn't seem to indicate how you would add files to the repo, or tell it where your working directory is.

Verbose logs showing the problem

N/A It isn't a problem as such, more a question about functionality.

Suggested solution to the issue

Add a help section that describes how to do this, or to let users know if this functionality is not yet included.

Operating System

Win 10 on a Surface Book 2

PowerShell Version

Name                           Value                                                                                                                                  
----                           -----                                                                                                                                  
PSVersion                      5.1.19041.610                                                                                                                          
PSEdition                      Desktop                                                                                                                                
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                                                                
BuildVersion                   10.0.19041.610                                                                                                                         
CLRVersion                     4.0.30319.42000                                                                                                                        
WSManStackVersion              3.0                                                                                                                                    
PSRemotingProtocolVersion      2.3                                                                                                                                    
SerializationVersion           1.1.0.1                                                                                                                                

Module Version

Running: 0.16.0
Installed: 
HowardWolosky commented 3 years ago

That functionality isn't part of this module. This module tries to bring GitHub functionality to the commandline.

What you're asking for (cloning and pushing) is basic git functionality that already comes directly from git itself.

git clone <repo>
git push -u origin <branchName>

git clone documentation git push documentation