ablog

不器用で落着きのない技術者のメモ

Github

GitHub の MarkDown の記法

https://docs.github.com/ja/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax

Github に push すると "Support for password authentication was removed on August 13, 2021. Please use a personal access token instead." と怒られる

Github に push すると "Support for password authentication was removed on August 13, 2021. Please use a personal access token instead." と怒られる。 事象 % git push origin master Username for 'https://github.com': yoheia Password for 'http…

GitHub から clone しようとすると、"Permission denied (publickey). fatal: Could not read from remote repository." と怒られる

事象 GitHub から clone しようとすると、"Permission denied (publickey). fatal: Could not read from remote repository." と怒られる。 % git clone git@github.com:yoheia/redshift_concurrent_query_executer.git Cloning into 'redshift_concurrent_q…

GitHub で2要素認証を有効化したら、git コマンドで push できない

事象 GitHub で2要素認証を有効化したら、git コマンドで push できない。 原因 2要素認証を有効化すると、git コマンドではパスワードではなく Personal access tokens で認証を行うため。 解決策 Personal access tokens を生成 ブラウザで GitHub にログ…

GitHub に push すると "error: src refspec master does not match any."、"error: failed to push some refs to" と怒られる

事象 GitHub に push すると "error: src refspec master does not match any."、"error: failed to push some refs to" と怒られる。 $ git push origin master error: src refspec master does not match any. error: failed to push some refs to 'git@gi…

GitHub で Web サイトを公開する

ブラウザで GitHub にログインする。 "GitHubアカウント名.github.io(例: yoheia.github.io)" という名前のリポジトリを作成する。 gh-pages, develop という名前のブランチを作成する。 ディレクトリを作成する $ mkdir yoheia.github.io $ cd yoheia.githu…

Github で fork する

Github にログインした状態で fork したいリポジトリに移動して [Fork] をクリックする。 参考 リポジトリのフォークは、2 つのステップからなるシンプルなプロセスです。 練習用のリポジトリを用意しましたので、ぜひお使いください。 GitHub で、octocat/S…

Github のリポジトリを削除する方法

https://github.com/ユーザー名/リポジトリ名/settings にアクセスする "Delete this repository" をクリック リポジトリ名を入力し、"I understand the consequences, delete this repository" をクリック 参考 Deleting a repository - User Documentation

GitHub Desktop のプロキシ設定を行う

Git shell を起動する 以下のコマンドを実行する。 $ git config --global http.proxy proxy.foo.com $ git config --global https.proxy proxy.foo.com C:\Users\ユーザー名\.gitconfig に以下のエントリが追加される。 [http] proxy = proxy.foo.com:80 [h…

GitHub for Windows をインストールした

今まで GitHub に対する操作は Windows、Mac、Linux からコマンドラインで使ってたけど、git が入っていない Windows で使いたくて、GitHub for Windows をインストールしてみた。 ダウンロード GitHub Desktop | Simple collaboration from your desktop か…

GitHub に *.github.io という URL の Web サイトを作る

今更だけど、GitHubを使って3分でHPを公開する。 - Qiita を参考に GitHub に Web サイトを作ってみた。 ブラウザで GitHub にログインする。 [New repository] をクリックし、"Create a new repository" というページに移動する。 [Repository name] に "Gi…

Github から Linux PC に clone したメモ

git をインストールする # yum install git リポジトリからチェックアウトする $ mkdir -p /home/yazekats/Documents/github $ cd /home/yazekats/Documents/github $ git init $ git clone git://github.com/yoheia/yoheia.git

今更 Github Gist はじめました

https://gist.github.com/yoheia とりあえず、Perlワンライナー&マルチライナー集 · GitHub を投稿してみた。

github に バイナリ置き場を作った

github に binary リポジトリを作成する。 Sign in to GitHub · GitHub で以下の通り入力して、[Create Repository] を押す。 Project Name: binary Description: location for binary files ローカルにリポジトリを作って、commitして、github に push する…

github にほりこんでるファイルの名前を修正した

cd /cygdrive/c/home/yoheia/src/github/meadow3/site-lisp git mv master.el.txt master.el git commit -m 'mv master.el.txt master.el' git push git@github.com:yoheia/yoheia.git master