-
https://www.digitalocean.com/community/tags/git?type=tutorials
-
github Markdown
-
https://www.benlcollins.com/javascript/creating-a-dynamic-d3-visualization-from-the-github-api/
-
CodeSwarm
-
https://github.com/youknowone/gitstat
- "Simple, static gitstat generator. "
- https://github.com/edunham/orglog
- "a log of every commit made to a GitHub organization's non-fork repositories"
- "The gitstat tool turns git log output into pretty graphs and statistics about new contributors and contribution types."
- "orglog is designed to concatenate the git logs of all source repositories (not forks) in a given organization."
<type>(<scope>): <subject>
<body>
<footer>
Type | Definition |
---|---|
feat | (new feature for the user, not a new feature for build script) |
fix | (bug fix for the user, not a fix to a build script) |
docs | (changes to the documentation) |
style | (formatting, missing semi colons, etc; no production code change) |
refactor | (refactoring production code, eg. renaming a variable) |
test | (adding missing tests, refactoring tests; no production code change) |
chore | (updating grunt tasks etc; no production code change) |
First Word | Meaning |
---|---|
Add | Create a capability e.g. feature, test, dependency. |
Cut | Remove a capability e.g. feature, test, dependency. |
Fix | Fix an issue e.g. bug, typo, accident, misstatement. |
Bump | Increase the version of something e.g. dependency. |
Make | Change the build process, or tooling, or infra. |
Start | Begin doing something; e.g. create a feature flag. |
Stop | End doing something; e.g. remove a feature flag. |
Refactor | A code change that MUST be just a refactoring. |
Reformat | Refactor of formatting, e.g. omit whitespace. |
Optimize | Refactor of performance, e.g. speed up code. |
Document | Refactor of documentation, e.g. help files. |
-
Git Desktop GUIs
-
https://speakerdeck.com/yinghau76/the-elements-of-good-commit-messages
-
[Angular.js git commit message guidelines] (https://github.com/angular/angular.js/blob/5afd54514d670d13783f51926d827c34223bb505/CONTRIBUTING.md#commit)
-
https://www.maker.io/en/blogs/beginners-guide-to-github/7b8afaacf96e41338427620de5c8aa74
-
https://www.atlassian.com/git/tutorials/learn-git-with-bitbucket-cloud
-
https://github.com/nirvdrum/svn2git
- Ruby tool for importing existing svn projects into git.
-
Configure Git on Windows for long path
git config core.longpaths true
-
Determine size of a git repository:
$ git count-objects -vH
- Example output:
*
count: 1594
size: 1.05 MiB
in-pack: 0
packs: 0
size-pack: 0 bytes
prune-packable: 0
garbage: 0
size-garbage: 0 bytes
-
Determine URL that a local Git repository was originally cloned from
git config --get remote.origin.url
git remote show origin
git remote -v
git ls-remote --get-url
-
Tell Git to remember your credentials (on Windows)
git config --global credential.helper wincred
- Also see:
-
When a checkout fails...
- You can inspect what was checked out with
git status
...and retry the checkout withgit checkout -f HEAD
- You can inspect what was checked out with
-
To fetch a file from another branch to the current one:
git checkout branch_name -- filename
-
To unstage a
git add <file>
git reset <file>
-
To Amend a Commit Message
Git commit --amend
-
TO backdate commits
git commit --date <date>
-
To Check out the origin/master branch and then reset master branch there
git checkout -B master origin/master
-
“top ten list” of most commited files
git log --pretty=format: --name-only | sort | uniq -c | sort -rg | head -10
-
Graphically show commits across different branches
git log --graph --oneline --decorate --date=relative --all