0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Giblab素人サイト AI回答

0
Last updated at Posted at 2026-11-07

Giblabで日本語表示に修正する

  1. 画面の右上隅にある丸いアイコン(ユーザーのプロフィールアイコン)をクリックします。
  2. 表示されたメニューの中から [Preferences](環境設定) を選択します。
  3. [Localization](地域化 / ローカライズ) という項目を探します。
    その中にある [Language] のプルダウンメニューをクリックし、「日本語」 を選択します。
  4. ページの一番下までスクロールし、青いボタンの [Save changes](変更を保存) をクリックします。
  5. ログアウトして再度ログイン。これで画面全体が日本語に切り替わります。

注意点

GitLabの日本語翻訳は、完全に100%すべての項目が翻訳されているわけではないため、一部の高度な設定やメニュー名が英語のまま残る場合がありますが、通常の操作やメンバー管理のメニューは日本語で表示されるようになります。

ユーザ作成手順

1.管理者をクリック

image.png

2.インスタンス概要→ユーザをクリック

image.png

3.新規ユーザーをクリック

image.png

アクセストークン発行手順

1.丸いユーザーアイコン→設定をクリック

image.png

2.アクセス→パーソナルアクセストークンをクリック

image.png

3.トークンを生成からトークンを生成できます。

image.png

4.生成したトークンを使って端末から作業ができます。
※作成されたAPIキー(トークン)が一度だけ表示されます。画面を閉じると二度と表示できなくなるため、必ずコピーして安全な場所に保存してください。

SSHキーの使い方

1.SSHキーをクリックする

image.png

2.SSHキーをクリックする

鍵がない場合は端末で以下のコマンドを実行する

#ssh-keygen -t ed25519 -C "your_email@example.com"
※メールアドレスは自分のものに変更してください

3.内容を張り付ける

image.png

gitコマンドでの操作

まずはgit clone

自分のディレクトリ作成
#mkdir mygit
#cd mygit 
#git clone http://ユーザ名:アクセスキー@192.168.2.176/ユーザ名/プロジェクト名.git

その後

ブランチ作成

※インフラはGUIでイシューを作成してからブランチ作成が一般的

#git checkout -b staging

作成したブランチへの移動

#git branch -a # 現在のブランチを確認
#git checkout staging # 
#git branch -a # 移動できたことを確認

サブモジュールとして追加する手順 まずはブランチでの作業しています

こういう構成の場合
今回は、testzzzプロジェクトのサブモジュールとしてbbbprojectを追加する場合

image.png

サブモジュールとして追加
#git submodule add ../bbbproject.git bbbproject

サブモジュール追加後git statusで確認(当然差分が出る)

git status
On branch staging
Your branch is up to date with 'origin/staging'.

Changes to be committed:
  (use "git restore --staged <file>..." to unstage)
        new file:   .gitmodules
        new file:   bbbproject

追加できているのでaddする
#git add .
#git commit -m "Add bbbproject as a submodule"
#git push origin staging

mainブランチへの反映

マージリクエストを作成をクリック

image.png

タイトル等をいれたら、「マージリクエストを作成」をクリック

※マージリクエストが承認されたときにソースブランチを削除はチェックを入れるのが一般的
※変わった現場だと、残しておく。

image.png

サブモジュールだけ更新

#git submodule update --remote bbbproject

サブモジュールだけ更新したことがわかる
サブモジュール名(bbbproject)

#git status
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   bbbproject (new commits)

no changes added to commit (use "git add" and/or "git commit -a")

サブモジュールの変更を取り込む
※git statusの情報が変更されます。

#git add bbbproject
#git commit -m "Update submodule bbbproject to latest version"
#git status
On branch staging
Your branch is ahead of 'origin/staging' by 1 commit.
  (use "git push" to publish your local commits)

nothing to commit, working tree clean

最後にpushします。

# git push origin staging
Username for 'http://192.168.2.176': kenken
Password for 'http://kenken@192.168.2.176':
Enumerating objects: 3, done.
Counting objects: 100% (3/3), done.
Delta compression using up to 2 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (2/2), 265 bytes | 265.00 KiB/s, done.
Total 2 (delta 1), reused 0 (delta 0), pack-reused 0
remote:
remote: To create a merge request for staging, visit:
remote:   http://192.168.2.176/kenken/testzzz/-/merge_requests/new?merge_request%5Bsource_branch%5D=staging
remote:
To http://192.168.2.176/kenken/testzzz.git
 * [new branch]      staging -> staging

サブモジュールの場合
参照先番号が変わります。そこで変更をGUIから確認できます。

あとはGUIでマージリクエストを出します。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?