Coder Social home page Coder Social logo

gitcommands's Introduction

gitcommands: Git Commands

Useful git commands, which will help millions of developers in their development work.

List of git commands

  • git init: Initialize the exisiting/new repository with VCS.
  • git clone: Get the exisitng VCS to your local system.
  • git config: checking configure, user name, email id, remote url, origin url, upstream url etc.
  • git status: checking the changes in the vcs repository.
  • git log: check the previous commit log information, who committed, when commit done, comments on commit
  • git log -n {4}: recent 4 log
  • git add: add the chagnes files/directory to the index of git for commit.
  • git commit: commit the added files or changes directory, git locally store it in vcs.
  • git push: push the local changes to remote server.
  • git pull: take the changes of the repository to your local system.
  • git reset: reset to the previous commit by commit hash
  • git stash: revert the local changes which is not added in the indexes and store it in temp files which can be later apply to the repo by the commands git stash apply recent stash will be applied in the current branch
  • git stash apply: apply any stash to the existing branch.
  • git cherry-pick: apply the commit changes by hash from one branch to other branch
  • git branch: list the current and all checkout branches.
  • git checkout: checkout the new or existing branch from a git repo or change to already checkout branch locally.

More information can be found at http://krishnaiitd.github.io/gitcommands/

Details of all git commands are describe in the site http://krishnaiitd.github.io/gitcommands/ with examples. you can visit and you can also free to contribute in this site by forking this branch and request for a pull request, I will be happy to merge your valuable contribution into this open source repository.

gitcommands's People

Contributors

krishnaiitd avatar krishna-prasad 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.