Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Autres
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LAPLACE Service commun électronique
Altium
Librairies_SCE
PCB
Autres
Commits
c7fc6d25
Commit
c7fc6d25
authored
8 months ago
by
OUAHHABI Nordine
Browse files
Options
Downloads
Patches
Plain Diff
modif PCB relais CMS (largeur et longueur)
parent
b77bf4f9
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Divers.PcbLib
+0
-0
0 additions, 0 deletions
Divers.PcbLib
Git-Create-a-new-branch.bat
+46
-46
46 additions, 46 deletions
Git-Create-a-new-branch.bat
Git-Update-and-Clean-all-branch.bat
+72
-72
72 additions, 72 deletions
Git-Update-and-Clean-all-branch.bat
xargs.cmd
+49
-49
49 additions, 49 deletions
xargs.cmd
with
167 additions
and
167 deletions
Divers.PcbLib
+
0
−
0
View file @
c7fc6d25
No preview for this file type
This diff is collapsed.
Click to expand it.
Git-Create-a-new-branch.bat
+
46
−
46
View file @
c7fc6d25
:: ----------------------------------------------------------------------------------------------------------
:: >>> SCE Laplace - Service Commun d'Electronique du Laplace <<<
:: ----------------------------------------------------------------------------------------------------------
:: Laboratoire plasma et conversion d’énergie - UMR5213
:: http://www.laplace.univ-tlse.fr/
:: © 2022 Laplace - CNRS/INPT/UPS
:: Créer le 2022-10-02, dernière mise à jour le 2022-10-03
:: par Arnauld Biganzoli <arnauld.biganzoli@laplace.univ-tlse.fr>
::
:: Description :
:: Fichier batch scipt Windows pour créer une branche de travail dans votre repository Git.
@REM ----------------------------------------------------------------------------------------------------------
@REM Préparation de la fenêtre cmd
@REM ----------------------------------------------------------------------------------------------------------
@echo
off
cls
@REM Définir le titre affiché dans la fenêtre de la console.
title
Creer
une
nouvelle
branche
de
travail
@REM Definition des variables en local
setlocal
EnableExtensions
EnableDelayedExpansion
if
exist
.git
(
echo
Creation
d
'une branche de travail pour votre repository local
echo -------------------------------------------------------------
echo.
@REM Nom de la nouvelle branche
set new_branch_name=
%USERNAME%
_
%date
:~6,4
%%date
:~3,2
%%date
:~0,2
%
@REM https://git-scm.com/docs/git-switch
git switch -c
!new_branch_name!
echo La branche "
!new_branch_name!
" est maintenant active
) else (
echo Vous n'
etes
pas
a
la
racine
d
'un repository.
)
echo.
pause
@REM End of batch program.
exit
:: ----------------------------------------------------------------------------------------------------------
:: >>> SCE Laplace - Service Commun d'Electronique du Laplace <<<
:: ----------------------------------------------------------------------------------------------------------
:: Laboratoire plasma et conversion d’énergie - UMR5213
:: http://www.laplace.univ-tlse.fr/
:: © 2022 Laplace - CNRS/INPT/UPS
:: Créer le 2022-10-02, dernière mise à jour le 2022-10-03
:: par Arnauld Biganzoli <arnauld.biganzoli@laplace.univ-tlse.fr>
::
:: Description :
:: Fichier batch scipt Windows pour créer une branche de travail dans votre repository Git.
@REM ----------------------------------------------------------------------------------------------------------
@REM Préparation de la fenêtre cmd
@REM ----------------------------------------------------------------------------------------------------------
@echo
off
cls
@REM Définir le titre affiché dans la fenêtre de la console.
title
Creer
une
nouvelle
branche
de
travail
@REM Definition des variables en local
setlocal
EnableExtensions
EnableDelayedExpansion
if
exist
.git
(
echo
Creation
d
'une branche de travail pour votre repository local
echo -------------------------------------------------------------
echo.
@REM Nom de la nouvelle branche
set new_branch_name=
%USERNAME%
_
%date
:~6,4
%%date
:~3,2
%%date
:~0,2
%
@REM https://git-scm.com/docs/git-switch
git switch -c
!new_branch_name!
echo La branche "
!new_branch_name!
" est maintenant active
) else (
echo Vous n'
etes
pas
a
la
racine
d
'un repository.
)
echo.
pause
@REM End of batch program.
exit
This diff is collapsed.
Click to expand it.
Git-Update-and-Clean-all-branch.bat
+
72
−
72
View file @
c7fc6d25
:: ----------------------------------------------------------------------------------------------------------
:: >>> SCE Laplace - Service Commun d'Electronique du Laplace <<<
:: ----------------------------------------------------------------------------------------------------------
:: Laboratoire plasma et conversion d’énergie - UMR5213
:: http://www.laplace.univ-tlse.fr/
:: © 2022 Laplace - CNRS/INPT/UPS
:: Créer le 2022-10-02, dernière mise à jour le 2022-10-03
:: par Arnauld Biganzoli <arnauld.biganzoli@laplace.univ-tlse.fr>
::
:: Description :
:: Fichier batch, scipt Windows pour mettre à jour votre repository Git et nettoyer les branches locales et remotes.
:: Rebase sur la branche main par defaut
@REM ----------------------------------------------------------------------------------------------------------
@REM Préparation de la fenêtre cmd
@REM ----------------------------------------------------------------------------------------------------------
@echo
off
cls
@REM Définir le titre affiché dans la fenêtre de la console.
title
MAJ
des
branches
du
repository
@REM Definition des variables en local
setlocal
EnableExtensions
EnableDelayedExpansion
if
exist
.git
(
echo
Mise
a
jour
de
vos
branches
echo
---------------------------
echo
.
@REM git fetch origin --prune && git pull
git
fetch
origin
--prune
git
merge
git
branch
--all --verbose
echo
.
@REM On regarde sur quelle branche on est et on revient sur main
set
current_branch
=
for
/F
"delims="
%%n
in
(
'git branch --show-current'
)
do
set
"current_branch=
%%n
"
@REM echo Switch sur la branche courante main
if
"
%current_branch%
"
==
"main"
(
echo
Verification
de
la
branche
courante
,
on
est
bien
sur
main
)
else
if
"
%current_branch%
"
==
"master"
(
echo
Verification
de
la
branche
courante
,
on
est
sur
master
au
lieu
de
main
)
else
(
echo
Basculement
de
la
branche
%current_branch%
vers
main
git
switch
main
)
echo
.
set
current_path
=
%~dp0
echo
Vous
etes
ici
!current_path!
xargs
.cmd
if
exist
xargs
.cmd
(
git
branch
--merged
|
xargs
git
branch
-d
)
else
(
echo
Le
fichier
"xargs"
ne
semble
pas
present
dans
ce
repository
)
)
else
(
echo
Vous
n
'etes pas a la racine d'
un
repository
.
)
echo
.
pause
endlocal
@REM End of batch program.
exit
:: ----------------------------------------------------------------------------------------------------------
:: >>> SCE Laplace - Service Commun d'Electronique du Laplace <<<
:: ----------------------------------------------------------------------------------------------------------
:: Laboratoire plasma et conversion d’énergie - UMR5213
:: http://www.laplace.univ-tlse.fr/
:: © 2022 Laplace - CNRS/INPT/UPS
:: Créer le 2022-10-02, dernière mise à jour le 2022-10-03
:: par Arnauld Biganzoli <arnauld.biganzoli@laplace.univ-tlse.fr>
::
:: Description :
:: Fichier batch, scipt Windows pour mettre à jour votre repository Git et nettoyer les branches locales et remotes.
:: Rebase sur la branche main par defaut
@REM ----------------------------------------------------------------------------------------------------------
@REM Préparation de la fenêtre cmd
@REM ----------------------------------------------------------------------------------------------------------
@echo
off
cls
@REM Définir le titre affiché dans la fenêtre de la console.
title
MAJ
des
branches
du
repository
@REM Definition des variables en local
setlocal
EnableExtensions
EnableDelayedExpansion
if
exist
.git
(
echo
Mise
a
jour
de
vos
branches
echo
---------------------------
echo
.
@REM git fetch origin --prune && git pull
git
fetch
origin
--prune
git
merge
git
branch
--all --verbose
echo
.
@REM On regarde sur quelle branche on est et on revient sur main
set
current_branch
=
for
/F
"delims="
%%n
in
(
'git branch --show-current'
)
do
set
"current_branch=
%%n
"
@REM echo Switch sur la branche courante main
if
"
%current_branch%
"
==
"main"
(
echo
Verification
de
la
branche
courante
,
on
est
bien
sur
main
)
else
if
"
%current_branch%
"
==
"master"
(
echo
Verification
de
la
branche
courante
,
on
est
sur
master
au
lieu
de
main
)
else
(
echo
Basculement
de
la
branche
%current_branch%
vers
main
git
switch
main
)
echo
.
set
current_path
=
%~dp0
echo
Vous
etes
ici
!current_path!
xargs
.cmd
if
exist
xargs
.cmd
(
git
branch
--merged
|
xargs
git
branch
-d
)
else
(
echo
Le
fichier
"xargs"
ne
semble
pas
present
dans
ce
repository
)
)
else
(
echo
Vous
n
'etes pas a la racine d'
un
repository
.
)
echo
.
pause
endlocal
@REM End of batch program.
exit
This diff is collapsed.
Click to expand it.
xargs.cmd
+
49
−
49
View file @
c7fc6d25
:: ----------------------------------------------------------------------------------------------------------
:: Script permettant l'utilisation de xargs en ligne de commande
:: ----------------------------------------------------------------------------------------------------------
:: https://superuser.com/questions/652492/windows-equivalent-to-xargs
:: Le fichier xargs doit se trouver dans le répertoire où l'on souhaite l'utiliser.
::
:: Exemmple :
:: Supprime sur le repo local toutes les branches qui ont été mergée dans une autre branche.
:: git branch --merged | xargs git branch -d
::
:: Source :
:: https://helloacm.com/simple-xargs-batch-implementation-for-windows/
@echo
off
setlocal
enabledelayedexpansion
set
args
=
set
file
=
'more'
:: read from file
if
"
%
1"
==
"-a"
(
if
"
%
2"
==
""
(
echo
Correct
Usage
:
%
0
-a
Input
.txt
command
goto
end
)
set
file
=
%
2
shift
shift
goto
start
)
:: read from stdin
set
args
=
%
1
shift
:start
if
[
%
1
]
==
[]
goto
start1
set
args
=
%args%
%
1
shift
goto
start
:start
1
for
/F
"tokens=*"
%%a
in
(
!file!
)
do
(
%args%
%%a
)
:end
endlocal
:: ----------------------------------------------------------------------------------------------------------
:: Script permettant l'utilisation de xargs en ligne de commande
:: ----------------------------------------------------------------------------------------------------------
:: https://superuser.com/questions/652492/windows-equivalent-to-xargs
:: Le fichier xargs doit se trouver dans le répertoire où l'on souhaite l'utiliser.
::
:: Exemmple :
:: Supprime sur le repo local toutes les branches qui ont été mergée dans une autre branche.
:: git branch --merged | xargs git branch -d
::
:: Source :
:: https://helloacm.com/simple-xargs-batch-implementation-for-windows/
@echo
off
setlocal
enabledelayedexpansion
set
args
=
set
file
=
'more'
:: read from file
if
"
%
1"
==
"-a"
(
if
"
%
2"
==
""
(
echo
Correct
Usage
:
%
0
-a
Input
.txt
command
goto
end
)
set
file
=
%
2
shift
shift
goto
start
)
:: read from stdin
set
args
=
%
1
shift
:start
if
[
%
1
]
==
[]
goto
start1
set
args
=
%args%
%
1
shift
goto
start
:start
1
for
/F
"tokens=*"
%%a
in
(
!file!
)
do
(
%args%
%%a
)
:end
endlocal
exit
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment