2
5

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

Google ColabとGit hubは悪くない組み合わせだ。

2
Last updated at Posted at 2022-08-29

初めに

どうも、python歴5カ月目でゆくゆくは転職を目指している者です。
今回、google Colabとgit hubがいい感じに連携をとれている事に気が付いたのでシェア致します。少しでも参考になれば幸いです。

前提知識

ごく簡単なgit hubについての理解。⇒ 関連記事を参照下さいませ。
git hubのアカウント。https://github.co.jp/

関連記事

CUIやgitそのものに馴染みがない方々向けにこのような記事を作成致しました。

本編

colabから直接GithubにPushしたい。

この画像の通りです。

2022-08-29_14h39_48.png

2022-08-29_14h40_05.png

これでこんな感じに簡単にpushする事が出来るわけです。
入れ物(レポジトリ)はgit hubの方から作成してくださいね。

2022-08-29_14h44_31.png

Githubに挙げたcolabのipynbを編集して保存したい。

上記の手順で無事colabを保存する事が出来ましたと。
しかしそれを編集する事もありますよね。これも凄く簡単なのです。

2022-08-29_14h50_22.png
これでしばらく待ちます。1~2分位。
そしたらこのようなVSコードチックな画面に映ります。そして下記の操作。これはVS codeとgit hubの連携と一緒。

2022-08-29_14h54_02.png

2022-08-29_14h57_59.png

そうしましたら確認して完了です。

2022-08-29_15h01_31.png

終わりに

かなり楽ちんでしょう。git hubに保存して何が嬉しいの?という方は是非関連記事を訪れて頂けると嬉しいです。
僕の場合はqiita等で他人にコードシェアするときは多用しておりますね。

2
5
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
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?