DEV Community

Raksha
Raksha

Posted on

GitLab

Hi guys,Today I learned something new which is GitLab. Learned how to create a new git lab account, how to use that and some terminal commands to use git lab

How to create a new gitlab account?

Go to this website https://about.gitlab.com/ here you can fill the details by manually or simply you can use continue with google. You have another options also, if you already have a github account you can use that also to sign in to GitLab.

To use GitLab on your pc. You have to download git, otherwise the git commands won't work in the terminal.

How to use that?

  • Using gitlab you can create a fresh project from scratch or you can also import your existing project and work with them.
  • In GitLab, Multiple users can work on same project.
  • It also used when we want to track our changes and go back to the old state.

Terminal Commands:

Today, i learned these basic commands

1.cd--> Change Directory (using this we can move to any folder)

2.ls-->List files (Which is used to list the files which are present in the particular folder)

3.mkdir-->Make directory (It is used to used a Directory / folder)

4.git --version-->This command is used to check the version of the git.

5.git init--> Used to create a new repository.

6.git add-->This is used to add the single file to our repository.

7.git add .-->This is used to add multiple files at a time to our repository.

8.git commit -m "commit message" -->Used to commit the changes with commit message, this commit message useful when someone checks for what you changed.

9.git clone--> It is used to clone a existing repository.

10.git push--> Used to push our updated code.

Bye Guyss..

devloper #learning #consistency #practice

Top comments (1)

Collapse
 
ragul_kannadasan profile image
Ragul Kannadasan

"6.git add-->This is used to add the single file to our repository."
In this line, single file ❌️. choose exactly which files or directories ✅️