Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Install CoreBOS under GIT version control
#1
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
Reply
#2
Have a look at this video:

https://plus.google.com/+JoeBordes/posts/aGAgcdNoGMD
Joe
TSolucio
Reply
#3
(05-11-2015, 07:02 AM)joebordes Wrote: Have a look at this video:

https://plus.google.com/+JoeBordes/posts/aGAgcdNoGMD

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
Reply
#4
Yes, it is the same. Git knows how to convert the latter into the former.
Joe
TSolucio
Reply
#5
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

remote: Counting objects: 18, done.
remote: Compressing objects: 100% (17/17), done.
remote: Total 18 (delta 15), reused 4 (delta 1), pack-reused 0
Unpacking objects: 100% (18/18), done.
From https://github.com/tsolucio/corebos
   050633e..eae8083  master     -> origin/master

Thank you.
Reply
#6
It would be:


Code:
git fetch --all
git log ..origin/master
git diff ..origin/master


http://stackoverflow.com/questions/58175...rge-in-git
Joe
TSolucio
Reply
#7
(05-18-2015, 06:37 AM)joebordes Wrote: It would be:



Code:
git fetch --all
git log ..origin/master
git diff ..origin/master


http://stackoverflow.com/questions/58175...rge-in-git

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.
Reply
#8
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?
Reply
#9
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.... :-)
Joe
TSolucio
Reply
#10
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)