Git Intro

  • Postat în IT
  • la 13-11-2020 10:48
  • de Horatiu Dan
  • 332 vizualizări

by Horatiu Dan

Abstract

The purpose of this post is to provide a brief and straightforward hands-on introduction to Git, first basic and mostly used commands.

It will the following:

How to create a new Git repository The basic operations when working with the local repository – check status, add, commint, change, revert How to make the local repository visible by synchronizing to a remote one (GitHub) Git Installation

Git can be downloaded from here.

Sample Project

In this post, a simple Java project called ‘gitintro’ is created and published to GitHub. Its few files can be seen in Appendix A.

Command line will be used.

Create – git init

A local folder may be transformed into a project repository by the git init command from inside it and thus, a new Git Repository is created.

c:\_work\git\gitintro>git init Initialized empty Git...