Smartface Developer Center

Smartface Developer Center

Welcome to the Smartface Developer Hub. You'll find comprehensive guides and documentation to help you start developing and managing native iOS and Android apps with Smartface Cloud.

Get Started    

Using Git with Smartface Cloud IDE to Manage and Sync Projects

Each application project is actually a standalone Linux system and almost any Linux commands are available in the Terminal.
You can also use the Terminal for source control for Git, Mercurial and SVN repositories.

Tips

How to use Git commands in the terminal (command line)?

When creating a new app project (workspace), you can clone a git project just typing your git project URL shown as below:

In your workspace, you can start coding and check your git status to see what you have been changing.

Smartface bash terminal also shows your commit and diff. When you left click on modified: scripts/pages/page1.js, you will see the regular git commands.

You can also use git push from Smartface bash terminal.

You should

SSH KEYS

Git repositories require http or ssh to connect them. In order to complete the ssh setup, you need to have a ssh key and register that ssh key to your Git, Bitbucket or similar services. You can easily get your ssh key from the account page in Smartface Cloud Dashboard:

With this way Smartface Cloud allows you to create new app projects using ssh connection type. After you this ssh process, private repositories can also be accessed without additional authentication so that you don't need to supply credentials for commands such as git push, pull, fetch, etc.

Warning

Please be aware of the extent of the direct repository access while using collaboration in your app project. Once you are connected to your repository through ssh, your collaborators won't need confirmation to use commands such as git push, pull, fetch and etc. for your repository. You can consider collaboration as a way to share your personal development environment.

How to edit Git config file?

Git config file is hidden on Smartface workspace but you can make it visible by the following operations.

Show hidden files on workspace.

Show hidden files on workspace.

Open your config file from .git folder.

Open your config file from .git folder.

Edit your file in code editor.

Edit your file in code editor.

Using Git with Smartface Cloud IDE to Manage and Sync Projects