Git Product home page Git Product logo

ineurongit's Introduction

Git commands

1. git --version

This command describes the version installed in the local system. image

2. git init

This command is used to create a new blank Git repository. image

3. git config --global user.name , git config –global user.email <user’s email address>

This commands helps in registering the username and mail id.This will make it easy to know which developer made the changes. image

4.git status

image

5.git add .

This command adds all the changes made in the working directory. image

The flow is git add . > git commit -m ''> git push origin main

6.git commit -m 'Check in message'

The command for commiting the code in staging environment. image

7.git branch

lists all the branches. image

8.git branch -M main

default branch is 'master'. In order to push code, need to change the branch to 'main'. image

9.git remote -v

gi This command lists the remote connection user has to other repositories. image

10.git pull --rebase origin main

Need to pull before push to avoid merge conflicts later.

image

11. git push origin main

This command pushes the changes from stagging to main git repository image

12. git revert

this command is used to revert the changes pushed in the repository.

13. git clone

git clone is primarily used to point to an existing repo and make a clone or copy of that repo at in a new directory, at another location

14. git log

This shows the sequence of events performed in the repository image

15.This command makes the mentioned branch as the focus branch in which developer can make the changes.

image

ineurongit's People

Contributors

kannanravinther98 avatar

Watchers

 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.