linux,UbuntuにはsourcetreeやTortoiseGitなどがない。
CUIでやってみる。
# インストール
sudo apt install git
# 入ったか確認
git --version
# コミットしたディレクトリに移動してinitする
git init
# ファイルを作成
touch README
# ステージする
git add README
# コミット前の設定
git config --global user.name hogetarou
git config --global user.email hogatarou@mail.com
# メッセージを付してコミット
git commit -m 'first commit'
# githubアカウントがありリポジトリがあったらこれでpushする
git remote add origin https://github.com/hogetarou/hello_world.git
git push origin master