質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.46%
GitHub

GitHubは、Gitバージョン管理システムを利用したソフトウェア開発向けの共有ウェブサービスです。GitHub商用プランおよびオープンソースプロジェクト向けの無料アカウントを提供しています。

Q&A

解決済

1回答

609閲覧

GitHubアカウントでアプリをセットアップするための手順について

退会済みユーザー

退会済みユーザー

総合スコア0

GitHub

GitHubは、Gitバージョン管理システムを利用したソフトウェア開発向けの共有ウェブサービスです。GitHub商用プランおよびオープンソースプロジェクト向けの無料アカウントを提供しています。

0グッド

0クリップ

投稿2020/09/19 17:46

編集2020/09/19 20:56

GitHub超初心者です。質問自体がもしかしたら意味わからないかもしれません。。。

GitHubにて新しくレポジトリーを作成しました。
ターミナルにて下記のコマンドを書かなくてはいけないのですが、
うまく行きません。

git init
git add .
git commit -m "first commit"
git remote add origin https://github.組織名.edu/[YOUR GT USER NAME HERE]/lab-3-2.git
git push -u origin master

下記のようになってしまうのですが、これは何が原因ですか?
GitHubに新しいレポジトリーを作成したいと思っています。

(base) 名前s-MacBook-Air:~ 名前$ cd/Users/名前/Desktop/6440
-bash: cd/Users/名前/Desktop/6440: No such file or directory
(base) 名前s-MacBook-Air:~ 名前$ git init
Reinitialized existing Git repository in /Users/名前/.git/
(base) 名前s-MacBook-Air:~ 名前$ git add .
warning: could not open directory 'Library/Application Support/MobileSync/': Operation not permitted
warning: could not open directory 'Library/Application Support/CallHistoryTransactions/': Operation not permitted
warning: could not open directory 'Library/Application Support/com.apple.TCC/': Operation not permitted
warning: could not open directory 'Library/Application Support/CallHistoryDB/': Operation not permitted
warning: could not open directory 'Library/IdentityServices/': Operation not permitted
warning: could not open directory 'Library/Messages/': Operation not permitted
warning: could not open directory 'Library/HomeKit/': Operation not permitted
warning: could not open directory 'Library/Mail/': Operation not permitted
warning: could not open directory 'Library/Safari/': Operation not permitted
warning: could not open directory 'Library/Suggestions/': Operation not permitted
warning: could not open directory 'Library/Containers/com.apple.VoiceMemos/': Operation not permitted
warning: could not open directory 'Library/Containers/com.apple.Home/': Operation not permitted
warning: could not open directory 'Library/Containers/com.apple.Safari/': Operation not permitted
warning: could not open directory 'Library/Containers/com.apple.iChat/': Operation not permitted
warning: could not open directory 'Library/Containers/com.apple.mail/': Operation not permitted
warning: could not open directory 'Library/Containers/com.apple.news/': Operation not permitted
warning: could not open directory 'Library/Containers/com.apple.stocks/': Operation not permitted
warning: could not open directory 'Library/PersonalizationPortrait/': Operation not permitted
warning: could not open directory 'Library/Metadata/CoreSpotlight/': Operation not permitted
warning: could not open directory 'Library/Metadata/com.apple.IntelligentSuggestions/': Operation not permitted
warning: could not open directory 'Library/Cookies/': Operation not permitted
warning: could not open directory 'Library/Caches/com.apple.safaridavclient/': Operation not permitted
warning: could not open directory 'Library/Caches/CloudKit/com.apple.Safari/': Operation not permitted
warning: could not open directory 'Library/Caches/com.apple.Safari/': Operation not permitted

下記にやりたいことの手順を書きました。

GitHubアカウントでアプリをセットアップするための手順

1、Cerner SMART on FHIRテンプレートリポジトリに移動します。
リポジトリのコンテンツをzipとしてダウンロードします。(右上隅にある緑色の「コード」ボタンをクリックして、「Zipをダウンロード」を選択します。)

2、zipを独自のディレクトリに抽出します。(例:C:\ 6440 \ lab-3-2l)

この独自のディレクトリに抽出方法がよくわかりません。これは自分のパソコンに6440というファイルを作成しGitHubsからダウンロードしたファイル(lab-3-2l)を入れれば良いのでしょうか?

3、GitHubアカウントに「lab-3-2」という名前のリポジトリを作成し、リポジトリをPublicに設定します。

注:別のリポジトリ名を使用する場合は、以下に示すサンプルURLを適切に調整する必要があります。

4、コマンドラインから、コードを抽出したディレクトリに移動し、次のコマンドを実行します(一般的なGitHubリポジトリの初期化手順を簡略化するために適応されています)。
git init
git add .
git commit -m "first commit"
git remote add origin https://github.組織名.edu/[YOUR USER NAME HERE]/lab-3-2.git
git push -u origin master

5、リポジトリ設定で、[GitHubページ]セクションまでスクロールします。「ソース」で、マスターブランチを選択します。これにより、githubページが有効になり、「https://github.組織名.edu/pages/ [ここにあなたのGTユーザー名] / lab-3-2 /」の形式で上記のGHページのURLが表示されます。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

shinami

2020/09/20 01:31

すでに、回答が出ていますがcdの後に半角スペースが無いので6440ディレクトリへ移動できていません。 または、その6440がありません。 その失敗したうえで強引にgit initを行っているのでホームディレクトリ(名前)ディレクトリ上に.gitディレクトリが作成されています。 さらにそのホームディレクトリーすべてのファイルをでgit addで追加しようとしているので許可できないファイルがあると予想します。 よって、cdコマンドで6440フォルダへ移動して行うのとできればホームディレクトリの.gitファイルは必要ないものと思いますので(.gitは隠しフォルダ)削除しましょう。 また、git remote add origin のYOUR GT USER NAME HEREはgithubアカウントの名前、lab-3-2はgithubの方で作ったリポジトリー名となると思います。 間違っている場合は、git remote rm originで削除できますので削除後再登録しましょう。
退会済みユーザー

退会済みユーザー

2020/09/20 22:35

ご返信ありがとうございます!試してみます!C:\6440\lab-3-2lとして保存する必要があるので、6440というファイルの中にGitHubからダウンロードしたZipファイルを入れました。もしかして、Zipファイルは解凍しないといけないのでしょうか?
shinami

2020/09/21 00:55

いいえ、解凍しなくてよいです。 cd c:\6440\lab-3-2l で移動してから行うと良いです。
退会済みユーザー

退会済みユーザー

2020/09/22 02:42

回答ありがとうございます!試してみます!
guest

回答1

0

ベストアンサー

まずは、1行づつコピーして実行してみればいいです

そんでエラーが出たら、それはそのときで

投稿2020/09/19 19:03

y_waiwai

総合スコア87800

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

退会済みユーザー

退会済みユーザー

2020/09/19 20:33

ご返信ありがとうございます!質問がわかりにくくて、もう一度修正しました!GitHubで新しくレポジトリーを作成したいと思ってますが、ターミナルにコマンドを入力するところでよくわかりませんでした。教えていただければ幸いです。m__m
退会済みユーザー

退会済みユーザー

2020/09/19 20:36 編集

初めの行の (base) 名前s-MacBook-Air:~ 名前$ cd/Users/名前/Desktop/6440 -bash: cd/Users/名前/Desktop/6440: No such file or directory の部分でzipを独自のディレクトリに抽出しなくてはならず、GitHub からZipファイルをダウンロードして6440という名前のフォルダに保存しました。 もしかしたら、ここで保存方法が違うかもしれません。。。しょうもない質問かもしれませんが、教えていただければ幸いです。。。
y_waiwai

2020/09/19 23:03

> (base) 名前s-MacBook-Air:~ 名前$ cd/Users/名前/Desktop/6440 cd というのがコマンドですんで、そのあとにスペースを挟んでディレクトリ名を入れます cd /Users/名前/Desktop/6440 といれてみてください
退会済みユーザー

退会済みユーザー

2020/09/22 02:42

回答ありがとうございます!それで試してみます!
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.46%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問