Git Flashcards
1
Q
Delete a branch
- Normal
- Force
A
git branch -d samplebranch
git branch -D samplebranch
2
Q
Restart GitLab
A
docker exec -it gitlab /bin/bash
gitlab-ctl restart
3
Q
Reinitialize the configuration on GitLab
A
docker exec -it gitlab /bin/bash
gitlab-ctl reconfigure
4
Q
Log into Ruby console
A
gitlab-rails console -e production
5
Q
Check the SMTP configuration on rails console
A
ActionMailer::Base.smtp_settings