Giter VIP home page Giter VIP logo

git-essentials's Introduction

#git-essential

Useful essential git config and shortcuts!

About this project

Need some useful shortcuts for git out of the box, but you're tired of reading through big projects with dark-magic mumbo-jumbo? You're in the right place! Only purpose of this script is to add few essential shortcuts to git, that will not overwhelm you and will speed up your work.

Included shortcuts

Log shortcuts:
  1. l - basic colored log
  2. ll - log showing additions and substractions from each file in commit
  3. g - graph
  4. lds - same as l, but with dates
  5. ld - same as l, but with date intervals (like "6 days ago")
  6. filelog, fl - log with file diff
  7. dl - same as ll, but showing only last commit
  8. branchdiff branch1...branch2 - shows if there are any unsynchronized commits between branch1 and branch2. Useful if you are about to force delete branch that git reports as "not fully merged"
Workflow shortcuts:
  1. s - shortcut for status -sb. This will give you easy to read, clean info about status of your working tree and index. First column shows you info about file state in index, and second column shows info about file status in working tree
  2. b stands for branch -avv. Calling git b will output you list of your local and remote branches, along with basic info (last commit, last commit message)
  3. co - shortcut for checkout
  4. st - alias of status -s
  5. ci - alias of commit
  6. cl - alias of clone
  7. cp - alias of cherry-pick
  8. pur - alias of pull --rebase
Also included
  1. git output coloring,
  2. rerere (REuse REcorded REsolution of conflicts - useful while rebasing)

Installation

  1. Clone this repository.
  2. Navigate to freshly created git-essentials folder.
  3. Add execute permissions to git-essentials.sh (for example, in command line: chmod u+x git-essentials.sh)
  4. Execute ./git-essentials.sh
  5. Test it! Just try to run git b or git s. Looks good, isn't it?

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.