Skip to content
offirmo edited this page Dec 1, 2017 · 13 revisions

Voir aussi git, module web.

Introduction

Repo Git

Wiki

Fonctions manquantes :

  • TOC
  • anchors
  • section modification
  • alias/redirection
  • d' i18n

Hébergement (Pages)

Custom domain

HTTPS

outils :

Contribuer

Avancé

https://github.audio/

ribbons

+++ http://tholman.com/github-corners/

contributing

https://github.com/tylucaskelley/github-templates

récupérer des commits d'autres forks

Git cherry-pick from another repository https://coderwall.com/p/sgpksw

Utiliser plusieurs identités

  1. avoir une deuxième paire de clés dans .ssh
  2. trafiquer son .git/config

Plusieurs clés :

-rw-------  1  id_rsa
-rw-r--r--  1  id_rsa.pub
-rw-------  1  id_rsa_offirmo
-rw-r--r--  1  id_rsa_offirmo.pub

Puis dans .ssh/config :

1. pro account
Host pro.github.com
   HostName github.com
   User git
   IdentityFile ~/.ssh/id_rsa
   IdentitiesOnly yes

1. offirmo account
Host offirmo.github.com
   HostName github.com
   User git
   IdentityFile ~/.ssh/id_rsa_offirmo
   IdentitiesOnly yes

Trafiquer son git/config :

[remote "origin"]
	url = git@offirmo.github.com:Offirmo/html_tests.git
	fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
	remote = origin
	merge = refs/heads/master
[submodule "incubator/base-objects.js"]
	url = git@offirmo.github.com:Offirmo/base-objects.js.git
[user]
	name = Offirmo
	email = offirmo.net@gmail.com
[github]
	user = Offirmo

Problèmes rencontrés

Diagnostic général

ssh -T git@github.com
Hi Offirmo! You've successfully authenticated, but GitHub does not provide shell access.

Tant que ça ne marche pas, pas la peine d'aller plus loin.

github remote invalid username or password

git a transformé l'url en http au clonage :-(

http://stackoverflow.com/questions/29297154/git-invalid-username-or-password

error: The requested URL returned error: 403 while accessing https://github.com/Offirmo/offirmo-shell-lib.git/info/refs

solution : http://stackoverflow.com/questions/7438313/pushing-to-git-returning-error-code-403-fatal-http-request-failed

Clone this wiki locally