Django製のタスク管理アプリをgithubでホスティング→別デバイスでクローン

はじめに

先日作成し始めたタスク管理アプリをguthubで管理できるようにした。

リモートリポジトリの作成

これは最初のコミットをした後だが、こちらはみなさんも画像をクリックすればアクセスできる。

ローカル→リモート

(venv) Mac:django_todo shibatahiroshitaka$ git init
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint: 
hint:   git config --global init.defaultBranch <name>
hint: 
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint: 
hint:   git branch -m <name>
Initialized empty Git repository in /Users/shibatahiroshitaka/Downloads/python/django_todo/.git/
(venv) Mac:django_todo shibatahiroshitaka$ git remote add origin https://github.com/ki-hi-ro/django_todo.git
(venv) Mac:django_todo shibatahiroshitaka$ git add .
(venv) Mac:django_todo shibatahiroshitaka$ git commit -m "initial commit"
[master (root-commit) f44bdb7] initial commit
 17 files changed, 278 insertions(+)
 create mode 100644 db.sqlite3
 create mode 100644 django_todo/__init__.py
 create mode 100644 django_todo/asgi.py
 create mode 100644 django_todo/settings.py
 create mode 100644 django_todo/urls.py
 create mode 100644 django_todo/wsgi.py
 create mode 100755 manage.py
 create mode 100644 myapp/__init__.py
 create mode 100644 myapp/admin.py
 create mode 100644 myapp/apps.py
 create mode 100644 myapp/migrations/0001_initial.py
 create mode 100644 myapp/migrations/__init__.py
 create mode 100644 myapp/models.py
 create mode 100644 myapp/serializers.py
 create mode 100644 myapp/tests.py
 create mode 100644 myapp/urls.py
 create mode 100644 myapp/views.py
(venv) Mac:django_todo shibatahiroshitaka$ git push origin master
Enumerating objects: 20, done.
Counting objects: 100% (20/20), done.
Delta compression using up to 8 threads
Compressing objects: 100% (19/19), done.
Writing objects: 100% (20/20), 8.28 KiB | 2.07 MiB/s, done.
Total 20 (delta 1), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (1/1), done.
To https://github.com/ki-hi-ro/django_todo.git
 * [new branch]      master -> master

クローン

macbookで作成していたので、iMacでも開発できるようにクローンしていきたい。

クローン完了!

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

投稿ID : 28844