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

[初心者向け]githubの手順

Last updated at Posted at 2019-11-02

前提

githubのアカウント登録とshhの接続準備はできているものという前提。

github上にpush先となるrepositoryを作る

githubから作って下記をコピーしておく。
git@github.com:xxxxxxx/xxxxx.git

ローカルrepositoryを設定する

これやっとこうな

実際にファイルを反映させる

git remote add origin git@github.com:xxxxxxx/xxxxx.git

まず初期化して、追加したいファイルをaddしてcommitしてstatus確認します。

$ git init
$ git add .
$ git commit -m "add new file"
または
$ git commit 
(その後にコメント追記して、 `:wq` する)
$ git status 

ここまできたらpushしてgithubに反映しよう

$ git push origin master

おつかれさまでしたmm

よく使うその他のもの

$ git pull origin master

参考

vimコマンドはこれを参考にしような
https://qiita.com/hide/items/5bfe5b322872c61a6896

ほかにも参考URL

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?