> For the complete documentation index, see [llms.txt](https://code.janardhanpulivarthi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://code.janardhanpulivarthi.com/google-cloud/storage-for-cloud-shell.md).

# Storage for cloud shell

.<https://cloud.google.com/storage/quotas>

```bash
gsutil mb gs://ai-experiments-001
mkdir /home/janardhan_pulivarthi/gcs
chmod 777 /home/janardhan_pulivarthi/gcs

janardhan_pulivarthi@cloudshell:~ (ai-experiments-001)$ gcsfuse -o nonempty -file-mode=777 -dir-mode=777 ai-experiments-001 /home/janardhan_pulivarthi/gcs
```

Error 1

Git clone gave the untracked, deleted files.

.<https://stackoverflow.com/questions/38980293/git-clone-leads-to-deleted-untracked-files>

Error 2 message

```bash
janardhan_pulivarthi@cloudshell:~/gcs (ai-experiments-001)$ git status fatal: not a git repository (or any parent up to mount point /home/janardhan_pulivarthi) 
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
```

The above error is due to, I have not cd into amp.dev git repository.

so answer: <https://stackoverflow.com/questions/4630704/receiving-fatal-not-a-git-repository-when-attempting-to-remote-add-a-git-repo>

Error 3 message

```bash
janardhan_pulivarthi@cloudshell:~ (ai-experiments-001)$ gcsfuse -o nonempty -file-mode=777 -dir-mode=777 ai-experiments-001 /home/janardhan_pulivarthi/gcs
Using mount point: /home/janardhan_pulivarthi/gcs
2021/03/15 07:16:34.333628 Opening GCS connection...
2021/03/15 07:16:34.695112 Mounting file system...
daemonize.Run: readFromProcess: sub-process: mountWithArgs: mountWithConn: Mount: mount: running fusermount: exit status 1

stderr:
/bin/fusermount: failed to access mountpoint /home/janardhan_pulivarthi/gcs: Permission denied
```

Error 4 message

```bash
$ git clone https://github.com/<user>/<repo>
remote: Enumerating objects: 143, done.
remote: Counting objects: 100% (143/143), done.
remote: Compressing objects: 100% (97/97), done.
remote: Total 6124 (delta 74), reused 83 (delta 43), pack-reused 5981
Receiving objects: 100% (6124/6124), 6.08 MiB | 1.83 MiB/s, done.
Resolving deltas: 100% (4181/4181), done.
error: packfile /home/janardhan/gcs/cloudshell/repo/openmined/.git/objects/pack/pack-05f3b2881c2041e4fa5187a554a269b00ac043b9.pack does not match index
error: packfile /home/janardhan/gcs/cloudshell/repo/openmined/.git/objects/pack/pack-05f3b2881c2041e4fa5187a554a269b00ac043b9.pack does not match index
```

![](/files/-MWAxqm6WvaqKlPWjPiW)

Error 5 message

```bash
fatal: update_ref failed for ref 'HEAD': cannot update ref 'refs/heads/dev': trying to write ref 'refs/heads/dev' with nonexistent object
```

History: <https://groups.google.com/g/msysgit/c/5J3ELvZND0s?pli=1>

.<https://github.com/libgit2/libgit2/issues/5556>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://code.janardhanpulivarthi.com/google-cloud/storage-for-cloud-shell.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
