Giter Club home page Giter Club logo

git-tutorial's Introduction

Welcome the git tutorial Introduction!

This tutorial aims to teach you how to use git in an efficient manner for your projects. This guide does not focus on git commands, but rather on the things you need to do in order to write code in an easy to maintain fashion.

Identity

When using git for the first time, the first step you need to do is to identify yourself, so that whoever is interested in the portion of code you wrote, they can easily reach you for further questions. In order to identify yourself, you need to specify your name and email address to the git engine. This is intuitively done using the git config command:

git config --global user.name "YOUR NAME"
git config --global user.email "[email protected]"

Run these commands on your local computer; make sure you use a valid name and email address!

Cloning

In order to modify the sources of this repository, you need to bring the sources on your local computer. This is done by cloning the remote repository from GitLab.

git clone [email protected]:razvan.crainea/git-tutorial.git

The command above will clone the repository in the git-tutorial folder in the current directory. Go to your new local git repository:

cd git-tutorial

Logs

By the time you see this message, there are already two versions of the README.md file: the first one is the one you initially saw when you opened the repository's link, containing only the Introduction and Identity sections. The second one is a new version that contains the Cloning section added later. You can view the two version, along with some details, by running the following command:

git log

Pull

In order to bring on your local station all the changes done on the remote repository, you need to pull the changes:

git pull

Check again that you have all four versions in the log:

git log

Finish

TODO: Replace this line with your acknowledgement :).

git-tutorial's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.