Reputation: 949
I have an existing Azure Repo. What I'd like to do is checkin a single file into the Repo from a local folder, using the commandline.
I'm not particularly concerned whether this is achieved using Az Powershell, Az Cli, Git or any other scripting language for that matter, although I must say that of the named three, I'm least familiar with Git and so Az Powershell or Az Cli would probably be my preferred option.
Any suggestions?
Upvotes: 0
Views: 644
Reputation: 2047
If you need an automated way to do a commit/push you can reach it in many ways, but the commands are the same whatever cli you are using. This because every cli at the end use git :
git add <fileName>
git commit -m"Commit description"
git push
You can put those instructions in a .bat, in a .ps1 or others. Add this file in your repository and then you can execute it in the Azure Pipeline to automate this action.
Upvotes: 1