How to Create New Project on GitLab with syntax and Visual Studio Code
1. Create New Project in Gitlab.com
Please Login in Gitlab.com or try sign up when you not have account in there.
a. Create New Project
b. Choose Category Project
c. Write your name project
Visibility Level :
Private
Project access must be granted explicitly to each user. If this project is part of a group, access is granted to members of the group.
Public
The project can be accessed without any authentication.
2. Setting Visual Studio Code
- Install Visual Studio Code
Please download in here when need that :
2. Install Gitlab Extension on visual studio
3. Start Work and Publish with Gitlab Syntax in Terminal
you will need this syntax for fast work.
- git checkout development
The git checkout command lets you navigate between the branches created by git branch . Checking out a branch updates the files in the working directory to match the version stored in that branch, and it tells Git to record all new commits on that branch.
$ git checkout master
- git pull
pull
is a combination of fetch
and merge
. It is used to pull all changes from a remote repository into the branch you are working on
$ git pull origin NAME-OF-BRANCH -u
- git brach newbranch
The branch
should now be created and active. You can confirm which branch you are working with this syntax.
$ git checkout branch-name
- git checkout newbranch
In Git, the term checkout is used for the act of switching between different versions of a target entity. The git checkout command is used to switch between branches in a repository. Be careful with your staged files and commits when switching between branches.
$git checkout branch-name
$ git merge master
Now you can start coding…. :)
Thanks
Joko Nardi | Malang