Code Monkey home page Code Monkey logo

git-config's Introduction

Git configuration

This repository has the purpose of showing current git global configuration for author's common repositories. The contents of the file .gitconfig-personal can be copied, then, to the config file.

  • Use git config --global --edit.

The file name, .gitconfig-personal is decided arbitrarily to be different than .gitconfig (config file) to avoid confusion with it, specially after copying it.

Some non-trivial commands

  • git lol and git lola: these alias output an one-liner graphed-version of the git log, which can very useful.
    • As a side note, a simpler version of it is found in the book Pro Git as an example.
  • git up: this alias serves the purpose of keeping the local repository's main/master branch updated -- dynamically.
    • It was adapted from Duncanlock.net and this Stackoverflow thread.
    • This same thread ("Git alias which works for main or master or other") shows an alternative to yield the "default branch":

      !git symbolic-ref refs/remotes/origin/HEAD | cut -d'/' -f4.

    • It may not work on Windows due to the sed or similar commands (see alternatives). As a consequence, commands dependable on it may not work either.

git-config's People

Contributors

israeldvd avatar

Stargazers

Roman 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.