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?

More than 3 years have passed since last update.

Git

Last updated at Posted at 2020-08-19

##🌼Gitの基本
Gitとは、
プログラムのソースコードなどの変更履歴を記録・追跡するための分散型バージョン管理システムである。

####Gitの準備
1回目だけ実行

$ git init

####共有するファイルを選択

$ git add ファイル名

####選択したファイルを記録

$ git commit -m "コメント"

####リモートを登録

$ git remote add origin(リモート名) URL

####リモートのmasterブランチにファイルをアップロード

$ git push origin master

####リモートのmasterブランチのファイルをダウンロードする

$ git pull origin master

####変更したファイルを確認

$ git status
スクリーンショット 2020-07-05 19.35.01.png

####現在の変更内容の確認

$ git diff
スクリーンショット 2020-07-05 19.38.05.png スクリーンショット 2020-07-05 19.40.53.png

####過去のコミットのログの確認

$ git log

####過去の変更内容の確認

$ git log -p
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?