I am running a Mac using OSX Yosemite v10.10.5.
I want to push my local git repo to my remote using AppleScript.
So the git code would be:
shellgit init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/myusername/my-project.git
git push -u origin master
But in order to run this from the terminal, first I need to cd
into my local directory.
cd my-directory
So how would I do all this from an AppleScript? Or the JavaScript option in the Script Editor would also help.
cd
) from there.cd
command. So I don't think thecd
works from shell? Maybe shell has a different means of accessing the command space inside the directory?cd /full/path/to/my-directory
instead. If it doesn't help, please ask a new question showing both the relevant part of the Automator action and the error you are getting