Git Operations: Pull, Branches, Commits

Deploy your code from Git, without a terminal

Deploy your code from Git

Every project is a Git checkout of your repository. From the project page you pull new code, switch branches, look at what changed and go back to an older commit, without opening a terminal.

Where: Projects › click a project › Git & Deployment, Git Status and Recent Commits

01 · The buttons

Git Settings

Shows the Repository address. Change the SSH Port with Update Port. Add, replace or remove the Deploy Key with Save Deploy Key or Remove Key.

Git Pull

Fetches the new commits and merges them into the site's files. A window shows the output.

Git Fetch

Updates the remote branches without changing any file of the site.

Switch Branch

Lists the branches, with a search box. Click one to check it out.

02 · See what changed

  • Git Status lists the files changed on the server and not committed. Type in Filter files... to find one.
  • Recent Commits lists the latest commits. The file icon on a commit shows its differences from the current one (HEAD).

03 · Go back to an older commit

  1. In Recent Commits, click the short hash of the commit. Or click Checkout and type any commit hash.
  2. Confirm. The site's files now match that commit.
A checkout changes the working copy: uncommitted changes on the server may be lost. Take a backup first if you are unsure.

04 · Private repositories

  1. Create an SSH key pair for this site on your own computer.
  2. Add the public key to your Git provider as a deploy key of the repository.
  3. Paste the private key in Deploy Key (SSH Private Key): when you add the project, or later in Git Settings.
  4. Use the SSH address of the repository, for example git@github.com:user/repo.git. If your Git server uses another SSH port, set Git SSH Port.

Need a Git command these buttons do not have? Run it in the Terminal; commits made there carry your name and email.

Projects tab