Setting up Git(App)

Hello:

I recently installed Git on my Cloud EX2, but the configuration URL says N/A.
How I can configure it?
How can I use it?

Also I’m looking in the manual, but there is nothing regarding Git settings, anyone can guide me on this?

Regards

Hi, don’t know a lot about Git, but maybe other users can give you some advice. 

You can use git through SSH. It is a source management program.

http://en.wikipedia.org/wiki/Git_(software

Thanks all,

I finally decided to configure Git through SSH. 

My concern to do it through SSH, was basically due to the product warranty loss, so I just hope that in subsequent updates include a configuration tool for Git within the dashboard.

I cannot imagine that would void the warrenty, although I did not think of that.

Doesn’t the warning say something about modifying the drive’s normal functionality? Using a provided App should not cross that line.

Maybe someone in the know from WD can confirm?

Git, as an application, is just a command line tool that allows someone to clone, edit, switch branches, push, pull, merge, and show differences. I.e. it is a source control application.

To test git, via command line (ssh) just issue the command

git clone

e.g. git clone git://github.com/clinton-hall/nzbToMedia.git

Or git clone http://github.com/clinton-hall/nzbToMedia.git

Then if you cd into that directory

cd nzbToMedia

You can switch branches

git checkout dev

git branch

If you edit a file in that repository, you can see the differences with 

git diff

And you can “commit” the changes 

git commit -a

Finally you can merge branches

git checkout master

git merge dev

The only thing you won’t be able to test is to push changes (you need permission to the online sources) but you can issue the command and verify that you get a username and password prompt

git push

More info can be found here

http://gitref.org/

1 Like

ziurm wrote:

Thanks all,

I finally decided to configure Git through SSH. 

My concern to do it through SSH, was basically due to the product warranty loss, so I just hope that in subsequent updates include a configuration tool for Git within the dashboard.

 

A couple of things:

  1. Though we don’t provide support for the app, it is available on our device, which means that you wouldn’t void the warranty to use it.
  2. However, if for some reason you did something in SSH that makes the drive inoperable, there probably wouldn’t be any other solution than doing a factory restore.

So are you saying that you can only do client side git operations from the NAS command line?  Can it be set up so that the NAS will act as a git server?  If so, what is the best way?

1 Like