Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tutorials
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
saclab
pedagogic_tools
tutorials
Commits
2f17af17
Commit
2f17af17
authored
1 year ago
by
GATEAU Thibault
Browse files
Options
Downloads
Patches
Plain Diff
[bash] adding alias and usefull ressources
parent
289351d2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
git/ressources/updateGit.sh
+101
-0
101 additions, 0 deletions
git/ressources/updateGit.sh
with
101 additions
and
0 deletions
git/ressources/updateGit.sh
0 → 100755
+
101
−
0
View file @
2f17af17
#/bin/bash
# run:
#cd $HOME/SVN/spacescriptsgeneric/scripts/Utils
#sudo bash scriptUpdateGit.bash
#GITPATH="$HOME/git"
GITPATH
=
"
$PWD
"
OUTPUT_FILE
=
"
${
GITPATH
}
/infoGit.txt"
#OUTPUT_FILE=infoGit.txt
#GITREPO="https://gitlab.com/eyesat-ccc/scc-calibrator.git"
#GITREPO="https://gitlab.com/eyesat-ccc/scc-synoptic-handler"
GITREPO
=
"https://gitlab.com/eyesat-ccc/"
REPO
=(
"scc"
"scc-build"
"scc-procedure"
"scc-packet-codec"
"scc-app"
"scc-parent"
"scc-tm-handler"
"scc-calibrator"
"scc-tc-handler"
"scc-xtce-generator"
"scc-data-archiver"
"scc-tc-verif-service"
"scc-xtce-parser"
"scc-kernel"
"scc-time-correlator"
"scc-synoptic-handler"
"scc-procedure-spell"
"scc-procedure-handler"
"scc-procedure-generator"
"scc-procedure-generator-test"
"scc-procedure-installer"
"scc-time-converter"
)
#MANUAL
#git clone https://gitlab.com/eyesat-ccc/scc-build.git
#git clone https://gitlab.com/eyesat-ccc/scc-procedure-installer.git
#git clone https://gitlab.com/eyesat-ccc/scc-procedure-spell.git
#git clone https://gitlab.com/eyesat-ccc/scc-procedures/scc-procedure-handler.git
#git clone https://gitlab.com/eyesat-ccc/scc-procedures/scc-procedure-generator.git
#git clone https://gitlab.com/eyesat-ccc/scc-procedures/scc-procedure-generator-test.git
#git clone https://gitlab.com/eyesat-ccc/scc-procedures/scc-procedure.git
#git clone https://gitlab.com/eyesat-ccc/scc-procedures/scc-procedure-installer.git
#scc-xtce-parser"
cd
$GITPATH
if
[
-f
$OUTPUT_FILE
]
;
then
mv
$OUTPUT_FILE
$OUTPUT_FILE
.bak
fi
for
((
i
=
0
;
i <
${#
REPO
[@]
}
;
i++
))
do
cd
${
GITPATH
}
/
echo
"Proceeding:
${
REPO
[
$i
]
}
"
echo
"=========="
>>
$OUTPUT_FILE
echo
"
$GITPATH
/
${
REPO
[
$i
]
}
"
>>
$OUTPUT_FILE
echo
"=========="
>>
$OUTPUT_FILE
FLAGREPO
=
$(
find
.
-maxdepth
1
-type
d
-name
"
${
REPO
[
$i
]
}
"
)
if
[
-z
${
FLAGREPO
}
]
;
then
git clone
${
GITREPO
}${
REPO
[
$i
]
}
else
#ls ${GITPATH}/${REPO[$i]} >> $OUTPUT_FILE
cd
${
GITPATH
}
/
${
REPO
[
$i
]
}
#git up
#git st
git remote update
-p
git merge
--ff-only
@
{
u
}
git status
fi
echo
" "
>>
$OUTPUT_FILE
#echo "Press a key..."
#read a
done
cd
$GITPATH
#############################
# run:
#cd $HOME/SVN/spacescriptsgeneric/scripts/Utils
#bash scriptUpdateGit.bash
#git checkout -b testingTestunit
#git ci -am "adding some stuff in bdd"
#git co master
#git pull
#GITREPO="https://gitlab.com/eyesat-ccc/scc-app"
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