Skip to content

Latest commit

 

History

History
68 lines (46 loc) · 5.33 KB

git_working.md

File metadata and controls

68 lines (46 loc) · 5.33 KB
copyright lastupdated
years
2015, 2017
2017-6-8

{:shortdesc: .shortdesc} {:new_window: target="_blank"} {:screen:.screen} {:codeblock:.codeblock}

{{site.data.keyword.gitrepos}}

{: #git_working}

Collaborate with your team and manage your source code with a Git repository (repo) and issue tracker that is hosted by IBM and built on GitLab Community Edition External link icon{:new_window}. {: shortdesc}

The {{site.data.keyword.gitrepos}} tool integration supports teams to manage code and collaborate in many ways:

  • Manage Git repositories through fine-grained access controls that keep code secure
  • Review code and enhance collaboration through merge requests
  • Track issues and share ideas through the issue tracker
  • Document projects on the wiki system

Note: Because this tool integration is built on GitLab Community Edition and hosted by IBM on Bluemix, a few GitLab options are not available. For example, Delivery Pipeline provides continuous integration and continuous delivery for Bluemix; therefore, the continuous integration features in GitLab are not supported. In addition, the admin functions are not available because they are managed by IBM.

Using {{site.data.keyword.gitrepos}} locally

{: #git_local}

You can locally access the Git repos that are stored in {{site.data.keyword.gitrepos}}. For instructions to set up Git locally, see Start using Git on the command line External link icon{:new_window}.

Tip: {{site.data.keyword.gitrepos}} supports HTTPS connections only that use TLS1.2. If you use Eclipse to connect, you might be required to specify this protocol for your Java™ version by adding -Dhttps.protocols=TLSv1.2 to your eclipse.ini file and then restarting Eclipse.

Authenticating with {{site.data.keyword.gitrepos}}

{: #git_authentication}

Your {{site.data.keyword.Bluemix_notm}} login and password are only used to authenticate with {{site.data.keyword.gitrepos}} in a web browser. You cannot use your {{site.data.keyword.Bluemix_notm}} user credentials to authenticate from external Git clients. To complete remote Git operations, such as clone or push, from your local Git repo, you must use a personal access token or SSH key to authenticate with {{site.data.keyword.gitrepos}}.

Creating a personal access token

Important: To authenticate with your Git repo over HTTPS, you must create a personal access token.

  1. On the {{site.data.keyword.gitrepos}} User Settings dashboard, on the Access Tokens page External link icon{:new_window}, type the name of the application that you want to create an access token for. For example, Git CLI.
  2. Optional: Choose an expiry date for the access token.
  3. Select the api check box to create a personal access token that uses api as the scope.
  4. Click Create Personal Access Token. Make note of your access token in a secure location for future use.
  5. On the Account page External link icon{:new_window}, in the Change username section, find your {{site.data.keyword.gitrepos}} username. Your username is also displayed as the first segment of the URL for any personal Git repos that you create.
  6. Use your {{site.data.keyword.gitrepos}} username and personal access token to authenticate with your Git repo from an external Git client.

To learn more, see Personal access tokens External link icon{:new_window}.

Creating an SSH key

To create an SSH key, see How to create your SSH Keys External link icon{:new_window}. Accessing your repositories with SSH authentication might require more configuration for proxies and firewalls.

To learn more, see SSH External link icon{:new_window}.

File and repo size limits

{: #git_limits}

Files are strictly limited to 100 MB. The suggested repo size limit is 1 GB. If your repo exceeds 1 GB, you might receive an email with a request to reduce the size of the repo.

Take a tutorial: {{site.data.keyword.gitrepos}}

{: #git_tutorials}

Check out one of these tutorials on the IBM® Cloud Garage Method External link icon{:new_window}: