Skip to main content

Workflow using git

Install git in your machine:

See Git installation guide.

Create and setup your gitlab account:

To create a gitlab acount see Gitlab Sign Up.

In the settings tab add your SSH key to your gitlab account. If you don't have a ssh key see Learn how to create a SSH key.

Clone a repository into a new local directory:
	[user@fedora ~]$ mkdir my_repo 
	[user@fedora ~]$ cd my_repo
    [user@fedora ~]$ git clone git@git01.ncg.ingrid.pt:lip-computing/your_project_name.git
  
Create a new branch to work on a new feature:
	[user@fedora ~]$ git branch <name_of_branch>
	[mcastro@fedora portal-incd]$ git checkout new_feature 
	Switched to branch 'new_feature'