-
Notifications
You must be signed in to change notification settings - Fork 38
/
RemoteUpdate.txt
39 lines (29 loc) · 1.17 KB
/
RemoteUpdate.txt
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
32
33
34
35
36
37
38
39
To Create new copy, only once
git clone --mirror [email protected]/upstream-repository.git
git clone --mirror https://github.com/Shani-08/ShaniXBMCWork.git ShaniBitBucket
git clone --mirror https://github.com/Shani-08/ShaniXBMCWork.git ShaniBitBucket
-- after changes
git fetch origin
git push --mirror https://[email protected]/shani-08/shanixbmcwork.git
aaaaaaaaaaaaaaaaaaaaaaaaaaaa
https://confluence.atlassian.com/display/BITBUCKET/Set+up+SSH+for+Git#SetupSSHforGit-Step4.Createaconfigfile
http://www.bram.us/2012/05/06/automatic-website-publishing-with-git-github-style/
these two ... add key and setup post-receive
post-receive file changed11
#!/bin/sh
#
# An example hook script to prepare a packed repository for use over
# dumb transports.
#
# To enable this hook, rename this file to "post-update".
cd ../../ShaniBitBucket
git fetch origin
git push --mirror https://[email protected]/shani-08/shanixbmcwork.git
cd ../ShaniXBMCWork/ShaniXBMCWork
#!/bin/sh
#
# An example hook script to prepare a packed repository for use over
# dumb transports.
#
# To enable this hook, rename this file to "post-update".
./updateBitBucker.sh