Install CoreBOS under GIT version control - Printable Version +- CoreBOSBB (https://discussions.corebos.org) +-- Forum: Support (https://discussions.corebos.org/forumdisplay.php?fid=17) +--- Forum: User Support (https://discussions.corebos.org/forumdisplay.php?fid=6) +--- Thread: Install CoreBOS under GIT version control (/showthread.php?tid=146) |
Install CoreBOS under GIT version control - polanskiman - 05-11-2015 Hello, Could anyone make a short tutorial on how to install Corebos under GIT version control? Perhpas there is a thread already but I haven't fond it. Thank you. Paul RE: Install CoreBOS under GIT version control - joebordes - 05-11-2015 Have a look at this video: https://plus.google.com/+JoeBordes/posts/aGAgcdNoGMD RE: Install CoreBOS under GIT version control - polanskiman - 05-11-2015 (05-11-2015, 07:02 AM)joebordes Wrote: Have a look at this video: Thank you. Would the following work as well? git clone https://github.com/tsolucio/corebos.git instead of git clone https://github.com/tsolucio/corebos RE: Install CoreBOS under GIT version control - joebordes - 05-11-2015 Yes, it is the same. Git knows how to convert the latter into the former. RE: Install CoreBOS under GIT version control - polanskiman - 05-18-2015 Related question about GIT. As I understand it doing a git pull will update my copy of CoreBOS. However since I do have some code customisations I would like to be able to see what the update will be before applying those to my repository so that it doesn't overwrite anything. What is the proper GIT command for that? I tried git pull --dry-run but that didn't tell me specifically which files would be changed/modified/updated, it only showed me the following: Code: Serv> git pull --dry-run Thank you. RE: Install CoreBOS under GIT version control - joebordes - 05-18-2015 It would be: Code: git fetch --all http://stackoverflow.com/questions/5817579/how-can-i-preview-a-merge-in-git RE: Install CoreBOS under GIT version control - polanskiman - 05-18-2015 (05-18-2015, 06:37 AM)joebordes Wrote: It would be: Yeah I had found that link before but since I am not a git expert didn't want to try it before you reaffirmed it. Thank you Joe. RE: Install CoreBOS under GIT version control - polanskiman - 05-19-2015 I have another comment/question regarding updating CoreBOS via git. Each time I do a git pull the new created files will have the permissions of the account I am git pulling from. In my case, it's the root account. This is obvious, but it does leave me with having to re-apply the proper permissions each time I do an update. Isn't there a way to automate this? RE: Install CoreBOS under GIT version control - joebordes - 05-19-2015 Can't you pull them as the user they should belong to? AFAIK git does not control in any way the user assignment so I would suggest creating a small bash script to do the assignment for you, after all it is just one command.... :-) RE: Install CoreBOS under GIT version control - polanskiman - 05-20-2015 No, I can't pull them using the http user as that is the user they are supposed to belong to and even if I did, although the ownership would be fine, the permissions would still be incorrect or at least not totally accurate. Synology only enables the root and admin accounts for ssh and in order to enable other users I would need to modify the /etc/passwd file which I would rather not do. Indeed, it's not git who controls the user assignment it's the account from which the pull command is being made from as far as I understand. |