Git Flashcards

1
Q

Delete a branch

  1. Normal
  2. Force
A

git branch -d samplebranch

git branch -D samplebranch

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Restart GitLab

A

docker exec -it gitlab /bin/bash

gitlab-ctl restart

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Reinitialize the configuration on GitLab

A

docker exec -it gitlab /bin/bash

gitlab-ctl reconfigure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Log into Ruby console

A

gitlab-rails console -e production

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Check the SMTP configuration on rails console

A

ActionMailer::Base.smtp_settings

How well did you know this?
1
Not at all
2
3
4
5
Perfectly