Setting the working directory before git operations
This commit is contained in:
parent
78ff99a7a3
commit
ac88d51225
3 changed files with 7 additions and 0 deletions
|
@ -16,6 +16,8 @@
|
|||
### 2. Update GitLab
|
||||
|
||||
```bash
|
||||
# Set the working directory
|
||||
cd /home/gitlab/gitlab/
|
||||
|
||||
# Get latest code
|
||||
sudo -u gitlab -H git fetch
|
||||
|
|
|
@ -7,6 +7,10 @@
|
|||
### 2. Update code & db
|
||||
|
||||
```bash
|
||||
|
||||
#Set the working directory
|
||||
cd /home/gitlab/gitlab/
|
||||
|
||||
# Get latest code
|
||||
sudo -u gitlab git fetch
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@ sudo chsh -s /bin/bash git
|
|||
__2. git clone gitlab-shell__
|
||||
|
||||
```
|
||||
cd /home/git/
|
||||
sudo -u git -H git clone https://github.com/gitlabhq/gitlab-shell.git /home/git/gitlab-shell
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue