Skip to content

Commit 83e1f71

Browse files
authored
Update ev3dev-with-git.md
1 parent c0809b2 commit 83e1f71

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lego/ev3dev-with-git.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ $ mkdir project
3333
$ cd project
3434
$ mkdir project.git
3535
$ git init --bare project.git
36-
$ nano project.git/hooks/post-receive
36+
$ vim project.git/hooks/post-receive
3737

38-
#this will open the file, then add the following two lines
38+
#this will open the file, press i to go to insert mode and add the following two lines
3939

4040
#!/bin/sh
4141
git --work-tree=/home/robot/project --git-dir=/home/robot/project/project.git checkout -f
4242

43-
43+
then press esc and type :x and enter to exit vim
4444

4545
$ chmod +x project.git/hooks/post-receive
4646
$ git config --global user.email "[email protected]"

0 commit comments

Comments
 (0)