Giter Club home page Giter Club logo

git-style-guide's People

Contributors

agis avatar alik0211 avatar alxsimo avatar aspenforester avatar avatar-lavventura avatar barik avatar bc-bfenton avatar calinou avatar danielkaparunakis avatar davidkadaria avatar denysdovhan avatar dijonkitchen avatar jeffvandyke avatar jeko2000 avatar juanitofatas avatar mbiesiad avatar runjak avatar simon-johansson avatar vanillajonathan avatar vincendep avatar vsemozhetbyt avatar wooorm avatar zorbash avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

git-style-guide's Issues

Bullet list style

  - Typically a hyphen or asterisk is used for the bullet,
    preceded by a single space, with blank lines in
    between, but conventions vary here

In your example, the hyphen is preceded by two spaces.

Which style should I use to add links into commit?

In the guide you have given following example for links:

Source http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html

Is it recommended to use : after source as:

Source: http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html

and also use Link instead of source?

ex:

Link: www.google.com

Brazilian Portuguese Version

Hi, I'd like to create a pt-br version. What do you think about create another .md file like "style-guide-pt-BR.md"?

Git rebase not working as expected (Label:Question)

Hello have doubt regarding git rebase .

I have two branches one main and another my feature branch .

I made 3 commit on feature branch at 1pm 2pm and 3pm respectively, now I did the 4th commit on main-dev at 4pm , When I am on feature branch and running git rebase main , on top of 4th commit my 3 commits are there absolutely as expected , but here comes the problem as soon as I am running git push my feature branch is getting diverged and then getting merged into feature again .

Can you help here , why it is happening.

Below screenshot for reference

Image description

Recommend that branch names be lowercase?

It seems to be a pattern with branch names in this guide, but is it a good rule to make sure that branch names stay lowercase for the most part? If so, it should probably be written.

At this point, I'm polling the community before making a pull request.

Bad guidelines for commit length/grammar.

Current style guide defines a 50-character limit for commits (and explicitly states that bad grammar should be used:

The commit summary line should be descriptive yet succinct. It should be no longer than 50 characters. It should be capitalized and written in imperative present tense. If it is a single sentence, do not put a period at the end:

  1. 50-character limit is quite non-standard, the current standard being 70-75. This is even used for linux (source (note that this guideline is actually even used by the author of git). If there's a sane reason to define 50 as a new maximum, that reason needs to be clearly stated.
  2. There's no sane reason to explicitly suggest bad grammar (omit the period). If the suggestion is to avoid proper grammar, a very good reason should accompany it (why should users follow a random guideline which suggests going against standards?).

I'm not necessarily suggesting that these two points be removed: but if the intentions is to keep them (and go against pre-existing standards), a sane reason should accompany them.

Required emphasis - all of this applies only to pushed commits/branches

In my opinion, it's perfectly fine to have a messy local copy, and clean it up later on:

XKCD 1296

In particular, this applies to the "Commits" section, and the "Messages" section. It's perfectly reasonable to use local commits as temporary snapshots of your work, fixing a bug and implementing a feature simultaneously; it's only important that you rewrite history before pushing - in this case to two simple commits, one for the bugfix and one for the feature (if they can indeed be logically separate).

This is in no way meant to detract from the "do not rewrite published history" rule.

Editor wise commit message formatting

Hi @agis-,

This is some nice stuff here.

In the Commit Messages section, what do you think about having something to auto-format git commit messages that people can use in their choice of editors like Vim or Emacs etc.

I use Vim for my things so I have a separate auto command to wrap messages in 72 characters per line and for spell check also.

I thought asking you would be right before a pull request as I saw in another issue that you were talking about keeping only git related things in the guide not editor specific.

Better description of vim

Hey! I think people are routinely confused by vim because it appears to do nothing after you've written something. You may want to clarify the messages section to note what happens after you've written the description of a commit. i.e. now press :q to quit vim, etc.

Chinese Version

I think it is a very good guide for me to manage my team.
Now I translate it into Chinese, and I want to know how to
merge into your repo.

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.