LoginSignup
0
0

More than 3 years have passed since last update.

Gitの使い方

Last updated at Posted at 2020-06-02

gitの使い方

まずはclone
ネットからローカルに落とす

git clone リポジトリ

ブランチ作成

git branch ブランチ名

ブランチ切り替え

git checkout ブランチ名

変更したふぁいるをadd

git add 変更したファイル

変更したふぁいるをcommit

git commit -m 変更したファイル

ローカルのものをリモートにあげる(ブランチがリモートに無いとき)

git push --set-upstream origin ブランチ名

この後プルリクを送る

リモートにあるブランチをとってきて適用

git fetch && git checkout ブランチ名

gitの状況を確認する

git stutas

addを取り消す

 git reset ファイル名

ファイルを残したままgit上からファイル削除

git rm --cached ファイル名
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