Outils pour utilisateurs

Outils du site


robots:rasmobot:linux_cfg

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
robots:rasmobot:linux_cfg [07/2019] – [GIT] fredrobots:rasmobot:linux_cfg [07/2020] (Version actuelle) – [branch] fred
Ligne 6: Ligne 6:
 </code> </code>
 ^  desc  ^   link  ^   level  ^   noise  ^  conso  ^ ^  desc  ^   link  ^   level  ^   noise  ^  conso  ^
 +| Rpi Zero W sur poteau |  43.  |  -67.  |  -256  |     
 +| Rpi Zero W ds haie |  42.  |  -68.  |  -256  |     
 | Rpi Zero W bureau  |  60.  |  -50.  |  -256  |   0.2-0.3W  | | Rpi Zero W bureau  |  60.  |  -50.  |  -256  |   0.2-0.3W  |
 | Rpi Zero W sous télé  |  50.  |  -60.  |  -256  |    | | Rpi Zero W sous télé  |  50.  |  -60.  |  -256  |    |
Ligne 102: Ligne 104:
 </code> </code>
  
 +ou git init pour créer un dépôt git dans un répertoire de travail , puis git remote add origin https://fred31@bitbucket.org/fred31/xxxxx.git pour faire la connection avec un depot bitbucket
 ===== branch ===== ===== branch =====
 <code C> <code C>
Ligne 108: Ligne 111:
   git checkout une_branche   // move to this bracnch   git checkout une_branche   // move to this bracnch
   git branch    // list of active branch   git branch    // list of active branch
 +  git mergetool main.c  (inclus le git add)
 +  git rebase --continue (surtout ne pas faire git commit , c est le rebase que le "fera")
 +  git push origin feature_branch_name    //Push your branch to the remote repository 
 +  //-u option to set up a tracking branch? 
 +</code>
 +
 +Mettre de coté une modif
 +<code bash>
 +git --no-pager log --oneline --graph --decorate -n 15
 +git branch modif_a_mettre_de_cote
 +git checkout branche_principale
 +git reset --hard 73b599328
 +git push origin branche_principale -f
 +ou git push origin HEAD:branche_principale -f 
 </code> </code>
  
Ligne 134: Ligne 151:
 * 2920836 init du depo * 2920836 init du depo
  
 +
 +</code>
 +
 + .gitconfig
 +<code bash>
 +glt = !git --no-pager log --oneline --all --graph --decorate -n 20
 +
 +
 +[diff]
 +        tool = mybc4
 +        #Show commit details of the changed submodules when running "git diff" from the parent repository
 +        submodule = log
 +[difftool]
 +        prompt = false
 +[difftool "mybc4"]
 +        #use cygpath to transform cygwin path $LOCAL (something like /tmp/U5VvP1_abc) to windows path, because bc4 is a windows software
 +        cmd = '/c/Program Files/Beyond Compare 4/BComp.exe' \"$(cygpath -w $LOCAL)\" \"$(cygpath -w $REMOTE)\"
 +[merge]
 +        tool = mybc4
 +[mergetool]
 +        prompt = false
 +[mergetool "mybc4"]
 +        #trustExitCode = true
 +        cmd = '/c/Program Files/Beyond Compare 4/BComp.exe' \"$(cygpath -w $LOCAL)\" \"$(cygpath -w $REMOTE)\" \"$(cygpath -w $BASE)\" \"$(cygpath -w $MERGED)\"
 +[color]
 +        ui = auto
 +
 +[color "status"]
 +        added = green bold
 +        changed = yellow bold
 +        untracked = red
 </code> </code>
  
Ligne 178: Ligne 226:
 <code C> <code C>
 sudo apt-get upgrade sudo apt-get upgrade
 +sudo apt-get clean
 sudo raspi-config   //on configure la langue, camera , .. et on "expand" le system de fichier sudo raspi-config   //on configure la langue, camera , .. et on "expand" le system de fichier
 sudo reboot sudo reboot
 +sudo apt-get install wiringpi
 +  $ gpio -v 
 +  $ gpio readall
 +sudo apt-get install git  
 +
 +
 +
 +// si interface graphique
 +
 sudo apt-get install tightvncserver sudo apt-get install tightvncserver
 tightvncserver  // pour ajouter un mot de passe tightvncserver  // pour ajouter un mot de passe
robots/rasmobot/linux_cfg.1564405337.txt.gz · Dernière modification : 07/2019 de fred