Skip to main content
Key2Goal

Main navigation

  • Home
  • About Us
  • Contact us
  • Glossary
  • Privacy Policy
User account menu
  • Log in

Breadcrumb

  1. Home

GIT

Top 10 useful commands for GIT with example

Here are ten useful Git commands along with examples:

  1. git init: Initializes a new Git repository in the current directory.

    git init
    
  2. git clone: Creates a local copy of a remote repository.

    git clone <repository_url>
    
  3. git add: Adds file(s) to the staging area for the next commit.

10 Git Useful Commands for Every Developer

 

Git commands:

1) git init : This command is used to start a new repository

2) git clone : This command is used to obtain a repository from an existing URL

3) git add : This command adds a file to the staging area

4) git commit : This command records or snapshots the file permanently in the version history

5) git push : This command sends the committed changes of master branch to your remote repository.

GIT

Article category

  • Drupal
  • Wordpress
  • Java
  • Javascipt
  • HTML
  • CSS
  • IOS
  • Android
  • PHP
  • MySQL
  • Other
  • Command line
  • NodeJs
  • Drupal 8
  • Drupal 7
  • GIT
  • DevOps
  • Python
  • Xampp
  • Server
  • Artificial intelligence
  • AppScript

Recent content

  • Differences Between Bootstrap 3 & Bootstrap 4
    10 hours 50 minutes ago
  • About Us
    15 hours 44 minutes ago
  • Privacy Policy
    17 hours 37 minutes ago
  • Create a Virtual Host on Xampp in 5 steps
    1 month 1 week ago
  • How to setup Multisite in drupal 9
    7 months 3 weeks ago
  • How to creating a FOR loop and a WHILE loop in JavaScript
    7 months 3 weeks ago
  • Calculator program HTML & PHP
    7 months 3 weeks ago
  • Algothrim to create a web application
    7 months 3 weeks ago
  • 10 Git Useful Commands for Every Developer
    7 months 3 weeks ago
  • Top 10 useful commands for GIT with example
    7 months 3 weeks ago
© Copyright 2017 - 2026 key2Goal. All Rights Reserved