Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: marcdexet-cnrs/notes
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: marcdexet/notes
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 6 commits
  • 3 files changed
  • 2 contributors

Commits on Oct 23, 2014

  1. Update notes_de_formation.adoc

    Add a few
    marcdexet-cnrs committed Oct 23, 2014
    Copy the full SHA
    fbcf1ce View commit details
  2. Merge pull request marcdexet#1 from marcdexet-cnrs/patch-1

    Update notes_de_formation.adoc
    marcdexet committed Oct 23, 2014
    Copy the full SHA
    9caf259 View commit details

Commits on Oct 31, 2014

  1. git stash apply

    marcdexet committed Oct 31, 2014
    Copy the full SHA
    7823b20 View commit details

Commits on Nov 10, 2014

  1. Copy the full SHA
    3f984f0 View commit details

Commits on Jan 21, 2015

  1. Copy the full SHA
    625af16 View commit details

Commits on Feb 6, 2017

  1. Creation of java 9

    marcdexet authored Feb 6, 2017
    Copy the full SHA
    a8bb75b View commit details
Showing with 88 additions and 0 deletions.
  1. +21 −0 git/introduction.asciidoc
  2. +49 −0 git/notes_de_formation.adoc
  3. +18 −0 monitoring/java9.adoc
21 changes: 21 additions & 0 deletions git/introduction.asciidoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
= Introduction à git

== Principes de base

* dépot
* index
* zone de travail

== Cycle

* Création d'un dépot
* Paramétrage
* status
----
git status
----
* premier ajout
[source,bash]
----
git add myfile.txt
----
49 changes: 49 additions & 0 deletions git/notes_de_formation.adoc
Original file line number Diff line number Diff line change
@@ -25,6 +25,21 @@ git reset HEAD benchmarks.rb
[source,bash]
git log

== Mettre en remise (stash)
Si des doivent être mis de côté
[source,bash]
git stash

Pour les récupérer
[source,bash]
----
// Avoir la liste
git stash list
stash@{0}: WIP on step1: 773a787 create person module
// récupérer le dernier remisage
git stash apply
----


== Récupérer une branche distante
[source,bash]
@@ -68,6 +83,18 @@ git merge correction
== Rebase
`rebase` sert à réécrire l'historique de l'évolution des source

== Renommer un fichier
[source,bash]
----
git mv ancien_nom nouveau_nom
----

== Déplacer un fichier
[source,bash]
----
git mv ancien_nom destination/
----

== FAQ
=== Je me retrouve avec un detached HEAD

@@ -79,3 +106,25 @@ La bonne démarche est la suivante :
----
git checkout nom_du_tag -b nom_nouvelle_branche
----

=== J'ai un conflit avec le remote
=== Automatic merge failed; fix conflicts and then commit the result.
J'ai fait des modifications, mais je ne suis pas à jour avec le _remote_.
Quand je fais un _push_, j'ai un message du genre

----
CONFLICT (content): Merge conflict in appinfo/bidon.php
Automatic merge failed; fix conflicts and then commit the result.
----

* Chercher les fichiers à fusionner avec
----
git status
----
* Les éditer et fusionner les bouts de code indiqués
* Les ajouter à l'index
----
git add mon_fichier
----
* *faire un commit*
* faire un push
18 changes: 18 additions & 0 deletions monitoring/java9.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
= Java 9
Marc DeXeT

Notes de veilles sur java 9

L'apport de java 9 est une architecture modulaire permettant de charger uniquement les parties pertinentes.
Cette décomposition se fait sous forme de jar modulaires et se fait se façon progressive depuis java 8.

Dans http://soat.developpez.com/tutoriels/java/futures-fonctionnalites-modulaires-java9/[Tutoriel pour comprendre les futures fonctionnalités modulaires de Java 9],
j'apprends que java 8 a des profils _compactes_ permettant de générant un JRE adapté.

Java ressemblera à un maven avec une gestion de dépendance par module

== Autres pistes
l'utilisation de `jrecreate` et `jdeps` dans java 8

* cf. https://docs.oracle.com/javase/8/embedded/develop-apps-platforms/jrecreate.htm
* cf. https://docs.oracle.com/javase/8/docs/technotes/tools/unix/jdeps.html