¿Hay alguna manera de actualizar los contenidos de un file en un proyecto en su count de services del equipo visual studio usando verbos HTTP, de forma similar a como se hace aquí con github https://developer.github.com/v3/repos/contents/ # update-a-file . var json={ "comment": "Update scripts.json", "changes": [{ "changeType": 2, "item": { "path": "$/ExtensionsTest/scripts.json", "contentMetadata": { "encoding": […]
Estoy intentando actualizar un file en uno de mis repositorys a través de la API. Aquí está mi obtención de ese file (funciona bien): curl -XGET 'https://git.fake.local/api/v3/repos/jsmith/repo_version/contents/version.html?ref=gh-pages' { "name": "version.html", "path": "version.html", "sha": "b1b716105590454bfc4c0247f193a04088f39c7f", "size": 5, "url": "https://git.fake.local/api/v3/repos/jsmith/post_version/contents/version.html?ref=gh-pages", "html_url": "https://git.fake.local/jsmith/post_version/blob/gh-pages/version.html", "git_url": "https://git.fake.local/api/v3/repos/jsmith/post_version/git/blobs/b1b716105590454bfc4c0247f193a04088f39c7f", "type": "file", "content": "aW5pdAo=\n", "encoding": "base64", "_links": { … } } Aquí está […]
Estoy escribiendo una secuencia de commands python para mantener mis files dot actualizados con un repository en GitHub. Copia los files de puntos en un directory separado ( ~/dotfiles ) para que mi directory personal no sea un repository git. Antes de copyr los files, realiza un filecmp.cmp( fileInLocalRepo,fileInHomeDir ) para ver si el file […]