curl
-
윈도우에서 cURL 써서 Git API 사용하기웹개발/깃허브 2019. 4. 16. 14:34
1. CMD 2. Git Bash 1 CMD 깃 api이용해서 curl 명령어로 원격 저장소의 내용을 수정하는 명령을 수행했다. 성공하면 커밋결과 제이슨을 리턴한다 curl 명령어는 아래 링크 참고했는데 리눅스 명령어라서 윈도우랑 다르다. https://gist.github.com/aborruso/40aee4f1738c0a0e3727bf7cbec91152 #!/bin/bash cartella="/var/myfolder" # update the file curl -i -X PUT -H 'Authorization: token 4d013330xxxxxxxxxxxxxx' -d "{\"path\": \"mattei.csv\", \ \"message\": \"update\", \"content\": \"$(open..