-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdoc.txt
More file actions
39 lines (31 loc) · 1.3 KB
/
doc.txt
File metadata and controls
39 lines (31 loc) · 1.3 KB
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
##### HACKLETS
alias hacklets.activate='source ~/projects/homedir/hacklets/bin/hacklets.sh' && hacklets.activate && hacklets_demo_repos
cd .. && rm -rf flav && mkdir flav && cd flav && hacklets.activate && hacklets_init
hacklets_fetch abc /tmp/hacklets-mocs/firstrepo.git
hacklets_fetch def /tmp/hacklets-mocs/secondrepo.git
hacklets_fetch xyz /tmp/hacklets-mocs/thirdrepo.git
hacklets_fetch foo /tmp/hacklets-mocs/unrelatedrepo.git
hacklets_new_profile profile
hacklets_adopt abc &&
hacklets_adopt def &&
hacklets_adopt xyz &&
hacklets_adopt foo
# uninstalling a hacklet:
# ------------------------
# show the commit where we should reset to
# hacklets_cmd describe --tags $(h rev-list -1 install-abc^)
# where install-abc is the tag name
#
# show the commit we should merge to
# hacklets_cmd rev-list --first-parent --reverse install-def..HEAD | head -1
#
# hacklets_cmd reset --hard <reset-commit>
# hacklets_cmd merge <merge commit>
## bootstrapping hacklets
cd /tmp && rm -rf $USER && mkdir $USER && cd $USER
mkdir -p .hacklets/hacklets.git
git clone --bare git://github.com/hacklets/hacklets-test.git .hacklets/hacklets.git
ln -s hacklets.git .hacklets/master
git --git-dir=.hacklets/master config core.bare false
git --git-dir=.hacklets/master config core.worktree "../../"
git --git-dir=.hacklets/master checkout