Definition :Git is a distributed version control system that tracks changes in any set of computer files, usually used for coordinating work among programmers collaboratively developing source code during software development. Its goals include speed, data integrity, and support for distributed, non-linear workflows.
The first thing that we need is to install “Git” in our computer. For that, we just go to its official web page (https://git-scm.com/downloads) and download and install the software. Just leave everything by default. (If you are working with windows, you will see that the software installs “Git Bash”. This will be the interface, our command line, which we will use to communicate with our online repository in GitLab).
After installing the git lab the next proccess is to build my personal site which was interesting thinks for me who was junia in programing.so if you are interested in building beutifull both comertialand private web sit follow the proccess below
after downloading the web it looks gog but not my wish can that's why i asked my instractor how to eddit the websit, he respond's me that when you ahave the web templete you can use various soft like visual code , Jimdo -Modern website designs ,Network Solutions Network Solutions -An easy & efficient way to create your own website, and so on. for me i am using window steps used to install visial studio code are the following.
after installing visual studio code I opened the folder in Visual Studio Code and began editing by using the most commonly css and html code which can be found in this link . Because I didn't use html and CSS code to create an interesting website, this phase was challenging. here you can see the way the web is look like afeter additing the templete
Once this is done, the next step is to create our SSH-Key,that allow us to establish a secure connection between your computer and GitLab. Open Git Bash:
Type
git config –-global user.name “your_username”and press enter and then type
git config -–global user.email “your_email”and press enter again. In this step Git Bash don’t give us any response. (Please use the same credentials that you use for GitLab)
Type
cat ~/.ssh/id_rsa.pub(If you see a long string starting with ssh-rsa that means that you already have a key so you can skip the next step).
. type
ssh-keygen -t rsa -C “your_email”. Here we press enter until you see your “key’s randomart image”.
Type
cat ~/.ssh/id_rsa.puband that huge string is our key.
the first step i did is search in my brouser git-lab
https://gitlab. fabcloud.org/then i loged in as fablab .
when you are loged in you gitlab cloud clik on repository then select clone boton after that shoose to clone by ssh by copying the adress your cloud. through this if you are using windows open git bash and the write the comand
git clonethen peste your copied adress from your repositiory. now you are done with cloning.
after cloning i opened visial studio code to finelise my site view which means there is some change in my file neded to be pushed. here there is few stapes i used in order to push my file for local repository to global repository
git initpress inter
git add .press inter
git commit -m" add-comment-you-want"press inter
git pushpress inter
If you encounter any issues with pushing to GitLab, make sure you have the correct permissions to access the repository, and check for any errors in your code or Git configuration.