LoginSignup
0
2

More than 5 years have passed since last update.

Gitの基本操作

Posted at

ディレクトリの移動

$ cd /Users/user/workspace

クローン,プル

  • クローン : リモートリポジトリをローカルに落とす(ダウンロードみたいなイメージ)
    • リポジトリのURLはGitHubなどの管理ページを参照
$ git clone URL
  • プル : 現在のリモートリポジトリの状態をローカルに反映させる(最新バージョンへの更新のイメージ)
$ cd /Users/user/local
$ git pull

1.状態の確認

$ git status

変更があったファイルのpathが表示される

2.ステージにあげる

個別にstageにあげる方法

$ git add file/path

一括でstageにあげる方法

$ git add -A

3.コミット

$ git commit -m コミットメッセージ

4.プッシュ

$ git push
0
2
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
2