LoginSignup
0
0

More than 1 year has passed since last update.

git github

Last updated at Posted at 2021-11-23

gitについて

・gitとは、バージョン管理にことを言う
※バージョン管理とは、誰がいつどこでコードを修正したかを可視化すること
-・githubとは、オンライン上で管理すること。
※gitはローカルで管理、githubはオンライン上で管理

git hubについて

・githubとは、オンライン上で管理すること。

git githubの実行手順 

(Gitコマンド1)
・git init (gitリポジトリーの作成 最初だけ) 
・git remote add origin (GitHubのURLを登録)
・git switch -c <ブランチ名> (ブランチを作成して切り替える)
※リポジトリーとは、フォルダーやファイルなどの記録する場所

(Gitコマンド2)
・git add . (変更内容をステージングに追加)
・git commit -M (git commit -m "メッセージ")
・git push origin <ブランチ名> (GitHubにプッシュ)

(Gitコマンド3)
・git switch <ブランチ名> (ブランチを切り替える)
・git pull origin <ブランチ名> (GitHubの変更内容を取り込む)

github メールアドレス ユーザーネーム
・git config —global user.name “jojo232”
・git config —global user.email yuya90360@icloud.com
・git config —global merge.ff false
・git config —global pull.rebase merges
・git config —list (確認する)

IMG_1888.png

README.md 意味

"https://code-ship-blog.wemotion.co.jp/class-diary/%E3%80%90%E4%BB%8A%E6%97%A5%E3%81%AEqa%E3%80%91readme-md%E3%81%A3%E3%81%A6%EF%BC%9F%E3%80%90github%E3%80%91/#:~:text=GitHub%E3%81%AEREADME.md%E3%81%A3,%E4%B8%8B%E3%81%AB%E8%A1%A8%E7%A4%BA%E3%81%95%E3%82%8C%E3%81%BE%E3%81%99%E3%80%82"

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