0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

なぜか、現在いるdirectoryから実行してくれない。cd . を足してみた。

$ cat up.sh
# git lfs install
cd .
git clone https://huggingface.co/kaizen-nagoya/kaizen-nagoya
cd kaizen-nagoya
cp ./LoRA_template_20241127.jpynb .
git add .
git commit -m "Add model"
git push

$ ./up.sh
fatal: destination path 'kaizen-nagoya' already exists and is not an empty directory.
cp: ./LoRA_template_20241127.jpynb: No such file or directory
warning: could not open directory 'Desktop/': Operation not permitted
warning: could not open directory '.Trash/': Operation not permitted
On branch master
Changes not staged for commit:
  (use "git add/rm <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
	deleted:    ../../anaconda-deep-1.tar

Untracked files:
  (use "git add <file>..." to include in what will be committed)
...

no changes added to commit (use "git add" and/or "git commit -a")
fatal: The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, use

    git push --set-upstream origin master

cdを絶対pathにしてみた。

$ cat up.sh
# git lfs install
cd /Users/ogawakiyoshi/llm
git clone https://huggingface.co/kaizen-nagoya/kaizen-nagoya
cd kaizen-nagoya
cp ./LoRA_template_20241127.jpynb .
git add .
git commit -m "Add model"
git push
$ ./up.sh
fatal: destination path 'kaizen-nagoya' already exists and is not an empty directory.
cp: ./LoRA_template_20241127.jpynb: No such file or directory
warning: could not open directory 'Desktop/': Operation not permitted
warning: could not open directory '.Trash/': Operation not permitted
On branch master
Changes not staged for commit:
  (use "git add/rm <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
	deleted:    ../../anaconda-deep-1.tar

Untracked files:
  (use "git add <file>..." to include in what will be committed)
...
    git push --set-upstream origin master

ファイルがないみたいで、絶対Pathの場所にコピーしてみた。

$ ./up.sh
fatal: destination path 'kaizen-nagoya' already exists and is not an empty directory.
cp: ./LoRA_template_20241127.jpynb: No such file or directory
warning: could not open directory 'Desktop/': Operation not permitted
warning: could not open directory '.Trash/': Operation not permitted
On branch master
Changes not staged for commit:
  (use "git add/rm <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
	deleted:    ../../anaconda-deep-1.tar

Untracked files:
  (use "git add <file>..." to include in what will be committed)
...
no changes added to commit (use "git add" and/or "git commit -a")
fatal: The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, use

    git push --set-upstream origin master

Ref

git error
https://qiita.com/kaizen_nagoya/items/d4b08ab5e13d7c4efde1

システムが落ちた。自分のPCからやろうとした。

git error2
https://qiita.com/kaizen_nagoya/items/0d6b32e9a20de6825c4a

フォルダが作ってなかった。ファイルをコピーしてなかった。

git error3
https://qiita.com/kaizen_nagoya/items/bb18c0cbad0c7d0671a3

0
1
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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?