Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Aflitos, Saulo Alves
tools
Commits
bc371eea
Commit
bc371eea
authored
13 years ago
by
sauloal
Browse files
Options
Downloads
Patches
Plain Diff
2012-03-02_00_22_39_01_00 :: 1 :: M => 1
parent
3a2cb335
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bin/gitCommitHome
+2
-53
2 additions, 53 deletions
bin/gitCommitHome
bin/gitCommitHomeJgit
+7
-19
7 additions, 19 deletions
bin/gitCommitHomeJgit
with
9 additions
and
72 deletions
bin/gitCommitHome
+
2
−
53
View file @
bc371eea
#!/bin/bash
cd
~
cd
/home/aflit001/git/
./commitRepos.sh
DATESTR
=
`
date
--rfc-3339
=
seconds |
tr
" |,|:|
\+
"
_
`
LOG
=
~/tmp/git_
$DATESTR
.log
git add
-v
.gitignore 2>&1 |
tee
-a
$LOG
git add
-v
.gitconfig 2>&1 |
tee
-a
$LOG
git add
-v
.bashrc 2>&1 |
tee
-a
$LOG
git add
-v
.htoprc 2>&1 |
tee
-a
$LOG
#git add -v .cpan 2>&1 | tee -a $LOG
#git add -v .cpanm 2>&1 | tee -a $LOG
git add
-v
.profile 2>&1 |
tee
-a
$LOG
git add
-v
.vnc 2>&1 |
tee
-a
$LOG
git add
-v
.ssh 2>&1 |
tee
-a
$LOG
git add
-v
.connectprofiles 2>&1 |
tee
-a
$LOG
git add
-v
.htoprc 2>&1 |
tee
-a
$LOG
git add
-v
.local 2>&1 |
tee
-a
$LOG
git add
-v
.selected_editor 2>&1 |
tee
-a
$LOG
git add
-v
bin 2>&1 |
tee
-a
$LOG
#git add -v code 2>&1 | tee -a $LOG
git add
-v
cyrille2 2>&1 |
tee
-a
$LOG
git add
-v
lib 2>&1 |
tee
-a
$LOG
git add
-v
filter 2>&1 |
tee
-a
$LOG
git add
-v
temptive 2>&1 |
tee
-a
$LOG
git add
-v
public_html/ 2>&1 |
tee
-a
$LOG
git add
-v
public_html_acessories/ 2>&1 |
tee
-a
$LOG
git add
-v
R 2>&1 |
tee
-a
$LOG
git add
-v
share 2>&1 |
tee
-a
$LOG
git add
-v
usr 2>&1 |
tee
-a
$LOG
git add
-v
var 2>&1 |
tee
-a
$LOG
git add
-v
include 2>&1 |
tee
-a
$LOG
git status 2>&1 |
tee
-a
$LOG
STATUSN
=
`
git status
-s
|
grep
-v
\?\?
|
wc
-l
`
STATUSN
=
$((
STATUSN-1
))
STATUST
=
`
git status
-s
|
grep
-v
\?\?
| perl
-MFile
::Basename
-ane
'BEGIN { %p } END { map { my $k = $_; print $k, " => ", (scalar keys %{$p{$k}}), "\n"; } sort keys %p; } $d=dirname $F[1]; $p{$F[0]}{$d}++;'
`
STATUSL
=
`
git status
-s
|
grep
-v
\?\?
| perl
-MFile
::Basename
-ane
'BEGIN { %p } END { map { my $k = $_; print $k, " => ", (scalar keys %{$p{$k}}), "\n"; } sort keys %p; foreach my $k (sort keys %p) { foreach my $kk ( sort keys %{$p{$k}} ) { print "\t$kk => $p{$k}{$kk}\n"; } } } $d=dirname $F[1]; $p{$F[0]}{$d}++;'
`
if
[[
!
-z
$(
git ls-files
--deleted
)
]]
;
then
git
rm
$(
git ls-files
--deleted
)
2>&1 |
tee
-a
$LOG
fi
echo
"STATUS
$STATUS
(
$STATUSN
)"
echo
"STATUS
$STATUS
(
$STATUST
)"
git commit
-m
"
$DATESTR
::
$STATUSN
::
$STATUST
"
2>&1 |
tee
-a
$LOG
cd
-
This diff is collapsed.
Click to expand it.
bin/gitCommitHomeJgit
+
7
−
19
View file @
bc371eea
...
...
@@ -9,34 +9,23 @@ JGITCFG=$FOLDER/.jgit_s3_private
BUCKET
=
saulo.git
JGITBIN
=
$FOLDER
/bin/jgit
DATESTR
=
`
date
--rfc-3339
=
seconds |
tr
" |,|:|
\+
"
_
`
LOG
=
$
FOLDER
/tmp/git_
$NAME
\_
$DATESTR
.log
LOG
=
$
HOME
/tmp/git_
$NAME
\_
$DATESTR
.log
echo
" MACHINE
$MACHINE
"
echo
" NAME
$NAME
"
cd
$FOLDER
touch
$LOG
#git add .gitignore 2>&1 | tee -a $LOG
#git add . -v 2>&1 | tee -a $LOG
git status 2>&1 |
tee
-a
$LOG
#git commit -m "$DATESTR" 2>&1 | tee -a $LOG
cd
/home/aflit001/git/
gitClean
.
2>&1 |
tee
-a
$LOG
./commitRepos.sh 2>&1 |
tee
-a
$LOG
git config
--global
pack.window 25M 2>&1 |
tee
-a
$LOG
git config
--global
pack.windowMemory 25M 2>&1 |
tee
-a
$LOG
git config
--global
pack.compression 1 2>&1 |
tee
-a
$LOG
git config
--global
pack.packSizeLimit 25M 2>&1 |
tee
-a
$LOG
git config
--global
pack.deltaCacheSize 25M 2>&1 |
tee
-a
$LOG
git config
--global
pack.deltaCacheLimit 25M 2>&1 |
tee
-a
$LOG
#git gc
git remote add s3_
$NAME
amazon-s3://
$JGITCFG
@
$BUCKET
/
$MACHINE
\_
$NAME
.git 2>&1
>
/dev/null
source
$HOME
/bin/secretLoad
source
$HOME
/bin/secretLoad
2>&1 |
tee
-a
$LOG
echo
"accesskey:
$AWS_ACCESS_KEY_ID
secretkey:
$AWS_SECRET_ACCESS_KEY
...
...
@@ -48,7 +37,6 @@ source $HOME/bin/secretUnLoad
$JGITBIN
push s3_
$NAME
2>&1 |
tee
-a
$LOG
rm
$HOME
/.jgit_s3_private
rm
$HOME
/.jgit_s3_private
2>&1 |
tee
-a
$LOG
cd
- 2>&1 |
tee
-a
$LOG
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