2
3

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 5 years have passed since last update.

よく利用するgitコマンド

Posted at

自分用のメモ

#git init
.gitディレクトリを作成(ローカルリポジトリ)

#git remote add origin "URL"
リモートリポジトリの追加

#git remote -v
現在のリポジトリ設定の確認

#git status
ファイルの確認

#git branch
現在のブランチの確認

#git add .
ファイルの追加

#git commit -m "comment"
コミット

#git push 送信するbranch:送信先branch
##git push origin master
#git pull

#git checkout rep
ブランチ切り替え

#git branch
現在のブランチ確認

2
3
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
2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?