Difference between revisions of "Git Resources"
From OdleWiki
(Added section for GitHub with one link) |
m (→General: Added "Adding a remote" link) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Template:External Resources}} | {{Template:External Resources}} | ||
+ | |||
+ | == General == | ||
+ | |||
+ | * [https://stackoverflow.com/questions/15291056/git-corrupt-files-head git merge - git corrupt files] | ||
+ | * [https://stackoverflow.com/questions/7632454/how-do-you-use-git-bare-init-repository How do you use git --bare init repository] | ||
+ | * [https://stackoverflow.com/questions/7861184/what-is-the-difference-between-git-init-and-git-init-bare What is the difference between git init and git init --bare] | ||
+ | * [https://help.github.com/articles/adding-a-remote/ Adding a remote] — advice for Github, but also works on private git repos | ||
== Git on Chrome == | == Git on Chrome == | ||
Line 10: | Line 17: | ||
== GitHub == | == GitHub == | ||
+ | |||
* [https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet Markdown Cheatsheet] | * [https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet Markdown Cheatsheet] | ||
+ | |||
+ | |||
+ | == Git Repo Config == | ||
+ | |||
+ | To initiate a bare repository: | ||
+ | |||
+ | <pre> | ||
+ | git init --bare name-of-repo.git | ||
+ | </pre> | ||
+ | |||
+ | To enable HTTP push: | ||
+ | |||
+ | Edit <code>config</code> and add: | ||
+ | |||
+ | <pre> | ||
+ | [http] | ||
+ | receivepack = true | ||
+ | </pre> | ||
+ | |||
+ | |||
+ | == Miscellaneous Links == | ||
+ | |||
+ | * [http://semver.org/ Semantic Versioning] | ||
+ | * [http://tom.preston-werner.com/ Tom Preston-Werner] | ||
+ | * [http://repo.or.cz/ repo.or.cz] | ||
+ | * [https://swcarpentry.github.io/git-novice/ Version Control with Git] | ||
+ | * [https://software-carpentry.org/lessons/ Software Carpentry Lessons] | ||
+ | |||
+ | |||
+ | == GitWeb == | ||
+ | |||
+ | These links describe the web interface to a Git repository. | ||
+ | * [https://git-scm.com/docs/gitweb Git - gitweb Documentation] — Basically, all the things you can do with GitWeb | ||
+ | * [https://git-scm.com/docs/gitweb.conf Git - gitweb.conf Documentation] — Specific information about the configuration file for GitWeb | ||
+ | |||
+ | To set the public owner of a repository, enter the repo in question and enter | ||
+ | |||
+ | <pre> | ||
+ | git config gitweb.owner name | ||
+ | </pre> | ||
+ | |||
+ | To set the category of a repository, enter the repo in question and enter | ||
+ | |||
+ | <pre> | ||
+ | git config gitweb.category Category | ||
+ | </pre> | ||
+ | |||
+ | Alternately, enter the repo in question and edit <code>config</code>, adding: | ||
+ | |||
+ | <pre> | ||
+ | [gitweb] | ||
+ | owner = name | ||
+ | category = Category | ||
+ | </pre> |
Latest revision as of 01:34, 19 July 2017
General
- git merge - git corrupt files
- How do you use git --bare init repository
- What is the difference between git init and git init --bare
- Adding a remote — advice for Github, but also works on private git repos
Git on Chrome
- Git and Node on a Chromebook, Without Crouton and Linux
- Chromebrew
- How Can I Use Git and Eclipse in my Chromebook
- How to Install Ubuntu Linux on Your Chromebook with Crouton
GitHub
Git Repo Config
To initiate a bare repository:
git init --bare name-of-repo.git
To enable HTTP push:
Edit config
and add:
[http] receivepack = true
Miscellaneous Links
- Semantic Versioning
- Tom Preston-Werner
- repo.or.cz
- Version Control with Git
- Software Carpentry Lessons
GitWeb
These links describe the web interface to a Git repository.
- Git - gitweb Documentation — Basically, all the things you can do with GitWeb
- Git - gitweb.conf Documentation — Specific information about the configuration file for GitWeb
To set the public owner of a repository, enter the repo in question and enter
git config gitweb.owner name
To set the category of a repository, enter the repo in question and enter
git config gitweb.category Category
Alternately, enter the repo in question and edit config
, adding:
[gitweb] owner = name category = Category