Etude de Cas
Récupération modification du dépôt ssh://pascalfares@git.java.net/ljug~materials-codes
premier essai
Que manque t'il? il faut renseigner java.net de votre clé publique
Création de la clé, tout simplement
Copier la clé dans votre profil soit commande clip soit ouvrir dans notepad et copy/paste habituel
clip < ~/.ssh/id_rsa.pub
Aller sur votre profil java.net après vous être connecté
Editer votre profil (tab sshkey) et ajouter une nouvelle clé puis collez y votre clé
En image
Maintenant recommençons
ça marche, youppi
Je vais mettre a jour des fichier en provenance de http://sms-remote.googlecode.com/files/SMSRemote%202.rar
J'ai unrarer replaçer les fichier dans le repertoire SMSRemote
puis cd ljug~materials-code
voici le résultat final
Windows PowerShell
Copyright (C) 2009 Microsoft Corporation. All rights reserved.
PS C:\Users\pfares> clip < ~/.ssh/id_rsa.pub
The '<' operator is reserved for future use.
At line:1 char:7
+ clip < <<<< ~/.ssh/id_rsa.pub
+ CategoryInfo : ParserError: (<:OperatorToken) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : RedirectionNotSupported
PS C:\Users\pfares> git clone ssh://pascalfares@git.java.net/ljug~materials-codes
Cloning into 'ljug~materials-codes'...
remote: Counting objects: 535, done.
remote: Compressing objects: 100% (427/427), done.
Receiving objects: 100% (535/535), 1.89 MiB | 48 KiB/s, done.ects: 98
Resolving deltas: 100% (124/124), done.
PS C:\Users\pfares> cd .\ljug~materials-codes
PS C:\Users\pfares\ljug~materials-codes> git push
warning: push.default is unset; its implicit value is changing in
Git 2.0 from 'matching' to 'simple'. To squelch this message
and maintain the current behavior after the default changes, use:
git config --global push.default matching
To squelch this message and adopt the new behavior now, use:
git config --global push.default simple
See 'git help config' and search for 'push.default' for further information.
(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
'current' instead of 'simple' if you sometimes use older versions of Git)
Everything up-to-date
PS C:\Users\pfares\ljug~materials-codes> git add .
warning: LF will be replaced by CRLF in SMSRemote/bin/jarlist.cache.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in SMSRemote/gen/com/example/smsremote/BuildConfig.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in SMSRemote/proguard-project.txt.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in SMSRemote/project.properties.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in SMSRemote/res/layout/activity_smsremote.xml.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in SMSRemote/res/menu/activity_smsremote.xml.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in SMSRemote/src/com/example/smsremote/SMSRemote.java.
The file will have its original line endings in your working directory.
PS C:\Users\pfares\ljug~materials-codes> git commit
warning: LF will be replaced by CRLF in SMSRemote/src/com/example/smsremote/SMSRemote.java.
The file will have its original line endings in your working directory.
[master warning: LF will be replaced by CRLF in SMSRemote/src/com/example/smsremote/SMSRemote.java.
The file will have its original line endings in your working directory.
520b892] la demande de l'auditeur
warning: LF will be replaced by CRLF in SMSRemote/src/com/example/smsremote/SMSRemote.java.
The file will have its original line endings in your working directory.
25 files changed, 171 insertions(+), 12 deletions(-)
rewrite SMSRemote/bin/classes.dex (81%)
create mode 100644 SMSRemote/bin/classes/com/example/smsremote/BuildConfig.class
create mode 100644 SMSRemote/bin/classes/com/example/smsremote/R$attr.class
create mode 100644 SMSRemote/bin/classes/com/example/smsremote/R$color.class
create mode 100644 SMSRemote/bin/classes/com/example/smsremote/R$drawable.class
create mode 100644 SMSRemote/bin/classes/com/example/smsremote/R$id.class
create mode 100644 SMSRemote/bin/classes/com/example/smsremote/R$layout.class
create mode 100644 SMSRemote/bin/classes/com/example/smsremote/R$menu.class
create mode 100644 SMSRemote/bin/classes/com/example/smsremote/R$string.class
create mode 100644 SMSRemote/bin/classes/com/example/smsremote/R$style.class
create mode 100644 SMSRemote/bin/classes/com/example/smsremote/R.class
create mode 100644 SMSRemote/bin/classes/com/example/smsremote/SMSReceiver.class
create mode 100644 SMSRemote/bin/classes/com/example/smsremote/SMSRemote$1.class
create mode 100644 SMSRemote/bin/classes/com/example/smsremote/SMSRemote.class
create mode 100644 SMSRemote/bin/classes/com/example/smsremote/SQLite$SQLiteHelper.class
create mode 100644 SMSRemote/bin/classes/com/example/smsremote/SQLite.class
create mode 100644 SMSRemote/bin/com.example.smsremote.SMSRemote.apk
create mode 100644 SMSRemote/libs/android-support-v4.jar
PS C:\Users\pfares\ljug~materials-codes> git push
warning: push.default is unset; its implicit value is changing in
Git 2.0 from 'matching' to 'simple'. To squelch this message
and maintain the current behavior after the default changes, use:
git config --global push.default matching
To squelch this message and adopt the new behavior now, use:
git config --global push.default simple
See 'git help config' and search for 'push.default' for further information.
(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
'current' instead of 'simple' if you sometimes use older versions of Git)
Counting objects: 61, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (34/34), done.
Writing objects: 100% (43/43), 596.15 KiB | 55 KiB/s, done.
Total 43 (delta 10), reused 0 (delta 0)
To ssh://pascalfares@git.java.net/ljug~materials-codes
56ff997..520b892 master -> master
PS C:\Users\pfares\ljug~materials-codes>