-
Notifications
You must be signed in to change notification settings - Fork 0
gitlab_github_ide
In order to download an exiting repository, follow the official GitHub guid.
GitLab works nearly the same, only search for the Clone
(GitLab) instead of the Code
(GitHub) button. Make sure you select the HTTPS (Token) or SSH link, depending on your setup.
GitHub or GitLab?
It's nearly the same. GitHub is service for developing and sharing software hosted by Microsoft. As an alternative there are open source tools like GitLab.
Those open source tools can be self-hosted, e.g. the GitLab at LRZ. Working with both - GitHub or GitLab - is nearly identical. In the terminal, both work with the command git
.
PyCharm is a powerful IDE for various coding languages. And it helps to develop python code way faster and more professional.
To start download the latest PyCharm version, connect your GitHub or GitLab or both accounts. One method per server is enough, either ssh or https/token. And the server, GitHub or GitLab (can be multiple server) depends on where the repository is located. Therefore, you have to select one of the following options:
If successfully, you can clone an existing repository described in this link.
In PyCharm, open Settings/Preferences -> Version Control -> Subversion -> SSH
and add the path to your Private Key
.
Add your public key to GitHub or GitLab via the webpage. Follow the links for
GitLab or
GitHub.
First you have to install the Gitlab Plugin:
- In PyCharm, open
Settings/Preferences -> Plugins
(official Plugins doc). - Make sure to select
Marketplace
, search forGitLab Projects
(plugin homepage) and install it. - Restart PyCharm - You will be prompted usually.
- And add a new GitLab Server
- Open
Settings/Preferences -> Version Control -> GitLab
, clickAdd new GitLab Server
and fill in: - GitLab UI Server Url:
https://gitlab.lrz.de/
- GitLab Personal Access Token: Create a new token and make sure you select
api
.- If the link doesn't work. On gitlab.lrz.de:
'Avatar' (upper right corner) -> Edit profil -> Access Tokens
- If the link doesn't work. On gitlab.lrz.de:
- Preferred checkout method:
HTTPS
- Press apply and ok, now you are set to go.
The steps and logic is nearly the same as in the GitLab-https-Token section. Here the official PyCharm guid to register an existing account. If you don't have an GitHub account, create one first.