Thanks to visit codestin.com
Credit goes to github.com

Skip to content

TMCooper/COVACIEL

Repository files navigation

REPO COVACIEL

Logo
Logo
Typing SVG

Quest

  • 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.

To install lazygit on ubuntu

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/bin

Fast config git global

Tip

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"

Automatic setup

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

Install gh

Important

Veiller a bien installer gh sous peine de ne pas pouvoir télécharger le repo

Install :

sudo apt install gh

login :

gh auth login

Logout :

gh auth logout

How to clone the repo

  • go where you want to download the repo
  • open cmd (CTRL + ALT + T)
  • type :
git clone https://github.com/TMCooper/Devel.git

Create you own branch to push your code

  • 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 Younes or Camille
  • 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

If the big installation don't work try one by one

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 lazygit
sudo install lazygit -D -t /usr/local/bin/

Clone specific branch

pre-release

git clone -b pre-release --single-branch https://github.com/TMCooper/COVACIEL.git

Setup VScode

Note

Of course clone your branch or the repo to use the command

cd /setup/extention_auto_installer

Warning

The command changes between Windows and Linux For Windows :

python install_extensions.py

For Linux :

python3 install_extensions.py

Install git on windows

Important

Veiller a bien installer gh sous peine de ne pas pouvoir télécharger le repo

  • Open CMD or powershell
  • 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

install Chocolatey

  • 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 lazygit

Note

You can also use the sript installer to do all at your place : installer.bat

Git clone Branch

TMCooper

git clone -b TMCooper --single-branch https://github.com/TMCooper/COVACIEL.git

pre-release

git clone -b pre-release --single-branch https://github.com/TMCooper/COVACIEL.git

Main branch

git clone -b main --single-branch https://github.com/TMCooper/COVACIEL.git

Merge command

First

  • git checkout pour basculer vers la branche dans laquelle vous souhaitez fusionner
git checkout pre-merged
  • check with
git branch

Merge vers main

git checkout main
git merge pre-merged

Récupération de la branch pre-merged et main

git fetch origin pre-release:pre-release
git fetch origin main:main

Warning

Ne pas oublie de pull indivituellement chaque branche pour que les connection sois bonne puis merge

Clone avec toute les branch

git clone https://github.com/TMCooper/COVACIEL.git && cd COVACIEL/ && git fetch origin pre-release:pre-release && git fetch origin TMCooper:TMCooper

Note

Pull all branches juste après !

Make Bakup with tag

Note

v1 est un tag qui varie et qui ne dois jamais être le même

1. Basculer sur la branche principale

git checkout main

2. 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-release

5. Pousser la fusion

git push origin main

Python Env

Tip

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\activate

Linux

source COVACIEL/bin/activate

Note

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

Backup automation

Tip

L'automatisation de la backup du code source fonctionne

Le script est la : git_backup.py

README.md

Important

README.md fait par TMCooper

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 6