Recent site activity

Update by Git

The first step for using git

You can understand here how to use git to upload files after you create a project.

We assume that you've already completed the following things.

  • You've registered your SSH public keys.
  • You've created your own project.

If you haven't done either of it yet, please complete them first and then go back to this page again.

Install git

If you haven't installed git yet, please follow the link below to install it. If you've already installed git, please skip this part and go to the next.

Initialize/clone the project repository

First, go to the directory you want to put the project source codes.

All projects are already initialized in internal fluxflex git servers when you created projects. Thus, you need to clone the project repository first into your local environment. 

You can find the path of the project git repository on "Project Home" -> Setup -> "Git" page.


On you local environment, type the following command.

$ git clone ssh://git@flx.fm:443/projectname

The "projectname" will be altered to your actual project name.

Then, you can see that some files are added in your environment like follows.
  • README
  • public_html/ directory
The public_html directory is the root directory of your web service. So all files under the directory will be published. If you want to put any files you DON'T want to publish, create directories other than public_html and put the files there.

Add Files

Create a file named test.html now and upload it in fluxflex's clous hosting servers.

Add test.html file under public_html directory and save the file. The file path will be public_html/test.html. Then use git to add and commit the file.

$ git add public_html/test.html
$ git commit

Please write any comment to remember the contents of the commit.

Then, now you reflect the modification to fluxflex's remote cloud hosting servers.

$ git push

Go to your web site, such as http://projectname.fluxflex.com/test.html and if you can browse the contents, you've successfully upload the file.

Some popular command patterns for using git

Here are popular command patterns for using git.

When you modified the source codes:
  1. git commit -a
  2. git push
When you added a file:
  1. git add filename
  2. git commit
  3. git push
When you deleted a file:
  1. git rm filename
  2. git commit
  3. git push