-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpull_github.sh
More file actions
executable file
·42 lines (36 loc) · 1.06 KB
/
pull_github.sh
File metadata and controls
executable file
·42 lines (36 loc) · 1.06 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
39
40
41
42
#!/usr/bin/env bash
echo "请首先生成ssh key-pair, 并写入gihub账户"
echo "Link & fetch Repo: deployEnv"
pushd ~/deployEnv
git remote rm origin
git remote add origin git@github.com:HaomingJu/deployEnv.git
git fetch #--unshallow
popd
echo "Link & fetch Repo: neovimCfg"
pushd ~/.config/nvim
git remote rm origin
git remote add origin git@github.com:HaomingJu/neovimCfg.git
git fetch #--unshallow
git rebase origin/master
popd
echo "Link & fetch Repo: Snippets"
pushd ~/.config/Snippets
git remote rm origin
git remote add origin git@github.com:HaomingJu/Snippets.git
git fetch #--unshallow
git rebase origin/master
popd
echo "Link & fetch Repo: Cheats"
pushd ~/.config/Cheats
git remote rm origin
git remote add origin git@github.com:HaomingJu/Cheats.git
git fetch #--unshallow
git rebase origin/master
popd
echo "Link & fetch Repo: Wiki"
pushd ~/.config/vimwiki
git remote rm origin
git remote add origin git@github.com:HaomingJu/vimwiki.git
git fetch #--unshallow
git rebase origin/master
popd