- Setup environment
- Auto Setup Environment Windows/Linux
- Installing gh
- Setup lazygit
-
Incomplete Quest
- PID (Asservissement moteur)
-
Completed Quest
- Podium de la course 3 ème
- Création des bases de la class CarControler
- Création des bases de la class Camera
- Création des bases de la class Lidar
- Comprendre le cahier des charges
- Creation des base de la Classe Pilote
- Amélioration du code Pilote capacité d'avancer
Warning
Vous êtes sur le README.md main.
sudo apt-get install build-essential libssl-dev libreadline-dev zlib1g-dev
LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep -Po '"tag_name": "v\K[^"]*')
curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz"
tar xf lazygit.tar.gz lazygit
sudo install lazygit /usr/local/binTip
Si vous avez une erreur au moment de push utiliser les command si dessous et le mots de passe n'est pas obligatoire indiquer le uniquement si votre erreur perciste malgré tous
git config --global user.name "Rias Gremory"git config --global user.email "[email protected]"git config --global user.password "your_password"Si c'est une machine Windows
Lit d'abord le readme_windows_install.txt
Tip
fait bien attention a utiliser le fichier full_setup.ps1
Si c'est une machine Ubuntu
Dans le cas de Ubuntu il y a juste besoins de rendre le .sh executable dans readme_linux_install
Tip
Fait bien attention a utiliser cette fois le full_setup.sh
Important
Veiller a bien installer gh sous peine de ne pas pouvoir télécharger le repo
Install :
sudo apt install ghlogin :
gh auth loginLogout :
gh auth logout- go where you want to download the repo
- open cmd (CTRL + ALT + T)
- type :
git clone https://github.com/TMCooper/Devel.git- Open lazygit on your terminal (but in the folder you cloned befor)
- Go on the local branches (use the arrow right and left to change the window and up and down for file)
- Then on the local branches press n (not on capital letter)
- Enter the name of the branche like
YounesorCamille - Then select the branche (if is not the case and press space bar to select the branch where you push your own code)
- And juste select what file you edit or some other thing and push on your Branch
LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | \grep -Po '"tag_name": *"v\K[^"]*')curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/download/v${LAZYGIT_VERSION}/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz"tar xf lazygit.tar.gz lazygitsudo install lazygit -D -t /usr/local/bin/pre-release
git clone -b pre-release --single-branch https://github.com/TMCooper/COVACIEL.gitNote
Of course clone your branch or the repo to use the command
- If you want to setup quickly, you can use the install_extensions.py with the following command :
cd /setup/extention_auto_installerWarning
The command changes between Windows and Linux For Windows :
python install_extensions.pyFor Linux :
python3 install_extensions.pyImportant
Veiller a bien installer gh sous peine de ne pas pouvoir télécharger le repo
- Open
CMDorpowershell - Type this command :
winget install -e --id Git.Git- After the previous command type :
winget install -e --id GitHub.cli- And now you can login on your windows device
- execute powershell in administrator
- copy and pasth this line on your powershell :
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))- tap on the same powershell (or you can reopen an new but in administrator too)
choco install lazygitNote
You can also use the sript installer to do all at your place : installer.bat
TMCooper
git clone -b TMCooper --single-branch https://github.com/TMCooper/COVACIEL.gitpre-release
git clone -b pre-release --single-branch https://github.com/TMCooper/COVACIEL.gitMain branch
git clone -b main --single-branch https://github.com/TMCooper/COVACIEL.gitFirst
- git checkout pour basculer vers la branche dans laquelle vous souhaitez fusionner
git checkout pre-merged- check with
git branchMerge vers main
git checkout maingit merge pre-mergedgit fetch origin pre-release:pre-releasegit fetch origin main:mainWarning
Ne pas oublie de pull indivituellement chaque branche pour que les connection sois bonne puis merge
git clone https://github.com/TMCooper/COVACIEL.git && cd COVACIEL/ && git fetch origin pre-release:pre-release && git fetch origin TMCooper:TMCooperNote
Pull all branches juste après !
Note
v1 est un tag qui varie et qui ne dois jamais être le même
1. Basculer sur la branche principale
git checkout main2. Créer un tag avant la fusion
git tag -a "v1" -m "$Point de restauration avant la fusion de pre-release"3. Pousser le tag vers le dépôt distant
git push origin "v1"4. Fusionner la branche pre-release dans main
git merge pre-release5. Pousser la fusion
git push origin mainTip
Création d'un env python : sous Ubuntu : python3 -m venv COVACIEL sous Windows : python -m venv COVACIEL
Activate l'env python
Windows
.\COVACIEL\Scripts\activateLinux
source COVACIEL/bin/activateNote
Avoir un environement qui ne change pas limite les problèmes de copatibilité sur la machine pendant les developpements les dependances contenue dans le requirements devrons donc être installer dedans
Tip
L'automatisation de la backup du code source fonctionne
Le script est la : git_backup.py
Important
README.md fait par TMCooper