LoginSignup
1
0

GitHubでまだ消耗してるの?- Are you still worn out on GitHub?

Last updated at Posted at 2020-07-29

Are you still worn out on GitHub?

GitHubでまだ消耗してるの?
GitHubってレスポンス遅くない?
時間を節約したくない?

You don't have to use GitHub to use Git.

多くの人が知らないので一応説明しておくと、Gitは、GitHub を使わなくても使えます。

もしあなたがエンジニアなら、MacかLinuxを使っていると思います。私はFreeBSDですが。え?Windows???(沈黙)

Creating a Git repository

GitHubは、Gitの Repository をホスティングしていますが、Gitの Bare Repositoryそのものは、あなたのパソコンでも作れて共有できます。

cd ~/
mkdir temp.git # temp.git ディレクトリ内に bare repositoryを作成する
cd temp.git
git init --bare # bare repositoryの作成
cd ~/
git clone ./temp.git cloned_repository_is_here

How to clone via SSH

sshでログインできれば、ssh経由で git repository を clone できます。

git clone username@example.com:~/temp.git

I don't understand SSH.

THAT'S COOL!!
sshを知らないエンジニアも最近は多いですよね!
そもそもWebデザイナー・コーダーの方にはsshは荷が重いですよ!
そのような場合も想定してあって、GitにはGitサーバーというデーモンが常駐してくれるプログラムがあります!
10年ほど前に、一度作ったことがありますが、もう忘れてしまいました。詳しくはググってみて下さい!

fatal: transport 'file' not allowed

If you clone a local repository, an error will occur.
ローカルのリポジトリをクローンするとエラーが発生するようになりました。
如果克隆本地存储库,则会发生错误。

This issue is resolved by running the following command:
この問題は、次のコマンドを実行することで解決します。
通过运行以下命令可以解决此问题。

git config --global protocol.file.allow always
1
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
1
0