hub

https://github.com/mislav/hub

Go

A command-line tool that makes git easier to use with GitHub.

Gitlab::Git::Repository#attributes_at

Check .gitattributes for a given ref

This only checks the root .gitattributes file,
it does not traverse subfolders to find additional .gitattributes files

This method is around 30 times slower than `attributes`,
which uses `$GIT_DIR/info/attributes`

Source | Google | Stack overflow

Edit

git clone [email protected]:mislav/hub.git

cd hub

open

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Gitlab--Git--Repository-attributes_at-for-pr


# Commit to git

git add git commit -m "better docs for Gitlab::Git::Repository#attributes_at"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Gitlab--Git--Repository-attributes_at-for-pr

hub pull-request


# Celebrate!