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コマンド

0
Last updated at Posted at 2021-01-27

issue1という名のブランチを作成する

git branch issue1

issue1にブランチを切り替える

git checkout issue1

変更したファイルの一覧を見る

git status

差分を見る

git diff

変更したファイルを全てステージに追加

git add -A

特定のファイルをステージへ追加

git add ファイル名

コミット

git commit -m 

カレントディレクトリをリモートにプッシュ(originを指定でブランチ名を指定しなくてよい)

git push origin HEAD

コミットを一つにまとめる

git rebase -i

ローカルのファイルの変更を元に戻す

git checkout <filename>

developブランチをpull

git pull origin develop

これから追加していきます。。。

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?