danb35
Hall of Famer
- Joined
- Aug 16, 2011
- Messages
- 15,504
So I'm working on a script to set up an iocage jail for Nextcloud: https://github.com/danb35/freenas-iocage-nextcloud
I've never used git before (other than doing the occasional
I'll
...so I delete the file, do git pull again, chmod +x again, and I'm in business, but it'd be nice to just set the permissions on this file to be executable. What would be the easiest way to do this?
I've never used git before (other than doing the occasional
git clone
), and done almost nothing with github.com before. I wrote the starting script in a text editor on my Mac, uploaded it and the supporting files, and then have been making edits directly on the website. I'm sure there's a better workflow, but this is mine for now.I'll
git clone
the repo onto a FreeNAS box, chmod +x
the script, and run it. I'll then make a change on github.com and try to do git pull
to update. And here's the problem--when I do the git pull, I get this:Code:
From https://github.com/danb35/freenas-iocage-nextcloud af6e42e..e3b1493 master -> origin/master Updating af6e42e..e3b1493 error: Your local changes to the following files would be overwritten by merge: nextcloud-jail.sh Please commit your changes or stash them before you merge. Aborting
...so I delete the file, do git pull again, chmod +x again, and I'm in business, but it'd be nice to just set the permissions on this file to be executable. What would be the easiest way to do this?