Git Product home page Git Product logo

basic-git-example's Introduction

Git: Version Control System ๐Ÿš€

Git is a version control system for managing your code as a 'repository' . You can collaborate and write your code with your team without blocking one another.

TL;DR

Use this video as referense and this repository

Installing Git - Windows

You can install git from here. Click next until you are asked for adjusting your path environment. choose "Run Git from the windows Command Prompt" click next and choose 'Checkout Windows-style, commit Unix-style line endings' until installation finished.

Initiate Git Repository

Prequisite

  • I REALLY RECOMMEND to organize your project first thing first in your directory, seperate backend business logic (query and setting to db) anb frontend (webapp and templates).
  • I recomend using vscode as your code editor, as it is a powerful tool for writing your code with many great extionsion to help you out, like built in git source control. Steps below can be followed from your terminal (cmd / powershell).

Git Init

  • Go to your project directory and open it on vscode.
  • Open vscode terminal with Ctrl + `. Make sure your default terminal is cmd .
  • copy this command in terminal git init

Now you can see source control is active and giving you marks in vscode.

First Commit

  • add all your code to stages with git add .
  • commit your stage git commit -m "Initial Commit [you can add another message here]"

You can add file 1 by one or by directory i.e. : git add ./webapp/index.html or git add ./webapp

Push Your Code to Remote Repository

  • Login to your github account.
  • Create new Repository with your project name as a Private Repository.
  • Go back to vscode and run this command. Dont forget to chage git url wit your project url. git remote add origin [email protected]:RazionAsukaru/example.git && git push origin master

Congratulation!!

Now You are using git and your project has a remote repository.

Good thing to learn after this

  • Adding ssh-key to github
  • Node Package Manager

basic-git-example's People

Contributors

muadz-askarul avatar

Watchers

James Cloos avatar  avatar

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.