Storage for cloud shell

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

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

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

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

$ 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

Error 5 message

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

Last updated

Was this helpful?