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 [06/2019] – [github] 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 72: Ligne 74:
 git fetch git fetch
 git pull git pull
 +git status
 git commit toto.c -m "bla bla" git commit toto.c -m "bla bla"
-ou git add -A && git commit  //pour tout committer+ou git add -A && git commit -m "bla bla" //pour tout committer 
 +ou git commit -a -m"bla bla"
 git push git push
  
  
-tree view : git log --graph --pretty=oneline --abbrev-commit | tig+tree view :  
 +  * git log --graph --pretty=oneline --abbrev-commit --all --decorate | tig 
 +  * glt = !git --no-pager log --oneline --all --graph --decorate -n 20 
 resumé de diff : git diff --stat resumé de diff : git diff --stat
 </code> </code>
Ligne 95: Ligne 102:
 <code C> <code C>
 git init --bare myrepo git init --bare myrepo
 +</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 =====
 +<code C>
 +  git remote  -v             // list of remote repositories
 +  git branch une_branche    // create a branch
 +  git checkout une_branche   // move to this bracnch
 +  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 bash>
 +~/gittest  (modifSKR)$ git glt
 +* 9eea3bb (master) modif master F2 2eme
 +* 3a87e6c modif master F2
 +| * 0ce25ca (HEAD -> modifSKR) modif ds branche
 +|/
 +* 98df5cf 1er modif du master
 +* 2920836 init du depo
 +0
 +~/gittest  (modifSKR)$ git rebase origin/master
 +fatal: Needed a single revision
 +invalid upstream 'origin/master'
 +1
 +~/gittest  (modifSKR) $ git rebase 9eea3bb
 +First, rewinding head to replay your work on top of it...
 +Applying: modif ds branche
 +0
 +~/gittest  (modifSKR) $ git glt
 +* 4d20e35 (HEAD -> modifSKR) modif ds branche
 +* 9eea3bb (master) modif master F2 2eme
 +* 3a87e6c modif master F2
 +* 98df5cf 1er modif du master
 +* 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 139: 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.1561029980.txt.gz · Dernière modification : 06/2019 de fred