Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# setHost
# setHost for linux
一键获取git的最新ip,并更新host文件
执行index.cmd文件即可

get the git latest ip and update to the hosts file

* 1) Prepare the requirements:
```
sudo apt-get install nodejs
```

* 2) Run the command
```
sh ./index.sh
```
2 changes: 0 additions & 2 deletions index.cmd

This file was deleted.

2 changes: 2 additions & 0 deletions index.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sudo node ./bundle.js /etc/