2
2

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.

Githubのメモ

2
Last updated at Posted at 2016-02-13

Gitの操作(ローカル管理)

ユーザ名とメールアドレスの登録

git config --global user.name "Name"
git config --global user.mail "test@.com"

リポジトリの作成

git init	

ファイルをステージへ追加(オプションですべてのファイル指定)

git add .
#以下でもOK
git add -A

変更点をコミット(-mオプションでコミット名指定)

git commit -m "Initialize repository"

Gitリポジトリへのプッシュ

Gitのプッシュ先の設定
GitHubにする場合

git remote add origin git@github.com:YusukeHarada/test.git

Bitbucketを利用する場合

git remote add origin git@bitbucket.org:YusukeHarada/test.git

Gitのプッシュ

git push origin master
# 以下に省略可能
git push
2
2
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
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?