FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
windows-batch-scripts/git_auto_bak.txt at master · tanabarr/windows-batch-scripts · GitHub
tanabarr
windows-batch-scripts
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
windows-batch-scripts
/
git_auto_bak.txt
Copy path
More file actions
More file actions
Latest commit
History
History
History
31 lines (27 loc) · 912 Bytes
Breadcrumbs
windows-batch-scripts
/
git_auto_bak.txt
Copy path
File metadata and controls
31 lines (27 loc) · 912 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!
/bin/bash
#
Automatically push these locations to public git
#
repositories.
#
This is the shell script executed by MinGw
#
This is triggered from batch script in winscripts
#
directory and auto run on Windows start-up (registry
#
setting). Repositories must be setup online and initialised.
#
repository that he is subdirectory of another should be removed
exec
&
>
"
/cygdrive/c/win scripts/git_auto_push.log
"
#
Change the delimiter so we can deal with filenames including spaces
SAVEIFS=
$IFS
IFS=
$(
echo -en
"
\n\b
"
)
dirs=
"
/cygdrive/u/software/generic_software_notes
/cygdrive/u/software/linux_software_notes
/cygdrive/c/NatLink/NatLink/MacroSystem
/cygdrive/u/software/Speech related/DNS-customisations
/cygdrive/c/win scripts
"
for
dir
in
$dirs
;
do
echo
$dir
cd
$dir
git add -u
.
git add
.
git branch -va
git commit -m
"
auto update
"
git push origin master
done
IFS=
$SAVEIFS
Back
|
FazBrowse Home
|
New Git URL