Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

This article is a Private article. Only a writer and users who know the URL can access it.
Please change open range to public in publish setting if you want to share this article with other users.

More than 3 years have passed since last update.

Githubの使い方

Last updated at Posted at 2020-10-12

Introduction

gitは分散型バックアップシステムです.

初めは馴染めないかもしれませんが,慣れると全く気になりません.便利で,不可欠なものとなります.

もっとも簡単な手順

init

  • githubにアカウントを作る

  • sshでloginできるようにする(ssh-keygen, パスワードは何も設定しない)

  • git config –global core.editor emacsこれがされてないとviが起動.:wqが抜けるコマンド(write and quite)

  • git config –global -e

あるいは

  • git config –global user.name "John Doe"
  • git config –global user.email johndoe@example.com

git command

  • git add -A
  • git commit -m 'first commit'
  • git pull origin main
  • git push origin main

github動作

img img

  • source ~/git_hub/ruby_docs/linux_bin_configs/github/README.org
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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?