Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user=MyUserName
- pass=MyPassword
- newName='{"name": "NewNameForRepo"}'
- oldName="MyRepo"
- curl -u "$user:$pass" -X PATCH -d "$newName" https://api.github.com/repos/$user/$oldName
- curl
- -H "Authorization: Token [token]"
- -H "Content-Type:application/json"
- -H "Accept: application/json"
- -X PATCH
- --data '{ "name": "new-repo-name" }'
- https://api.github.com/repos/owner/old-repo-name
Add Comment
Please, Sign In to add comment