LoginSignup
0
0

More than 1 year has passed since last update.

【UserLAnd】UbuntuでGit環境構築

Posted at

はじめに

家にPCがないのでスマホ(Android)で開発環境を構築しようと考えました。

動作環境

  • Sony Xperia 10 IV
  • Android OS 12
  • UserLAnd 3.1.4
  • Ubuntu 20.04.5 LTS
  • Git 2.39.0

リポジトリを追加

そのままapt installするとGitのバージョンが古いのでリポジトリを追加します。

$ sudo apt install software-properties-common
$ sudo add-apt-repository ppa:git-core/ppa

Gitをインストール

Gitをインストールします。

$ sudo apt install git

Gitのバージョンを確認

Gitのバージョンを確認します。

$ git --version
git version 2.39.0

ユーザー名とEmailアドレスを設定

Gitで使用するユーザー名とEmailアドレスを設定します。

$ git config --global user.name "John Doe"
$ git config --global user.email johndoe@example.com
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