Home>

I'm in trouble because I can't do the same thing.
I have come to Chapter 3 of rails, do git init, do git add -A
I'll try the command with gir push -m orijin master,
All of the following errors appear:
I have no idea what is wrong and I am in trouble.
If i have any details, please tell me how to succeed
Thank you very much. Thank you.

Error message
$git add -A
warning: LF will be replaced by CRLF in .gitignore.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in Gemfile.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in Gemfile.lock.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in README.md.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in Rakefile.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in app/assets/config/manifest.js.



It continues for a while. . .

$git status
On branch master
Changes not staged for commit:
(use "git add/rm..." to update what will be committed)
(use "git restore..." to discard changes in working directory)
deleted: locations.txt

Untracked files:
(use "git add..." to include in what will be committed)
.gitignore
Gemfile
Gemfile.lock
README.md
Rakefile
app/
bin/
config.ru
config/
db/
lib/
log/
package.json
public/
test/
tmp/
vendor/

no changes added to commit (use "git add" and/or "git commit -a")

$git push origin master
Repository satoshi_toto/sample1_app not found
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Applicable source code
Source code

Please describe what you tried for the problem here.

Supplemental information (FW/tool version etc.)

Please provide more information here.

  • Answer # 1

    Clone the remote repository and add various things to the working directory.
    How about add, commit, push?

  • Answer # 2

    Create new from rails new, cd to local directory, git init->add -A->commit, then push->commit- After doing m, edit various things, then remote and create a repository in Bitbucket, the rails folder was successfully uploaded. \ (^ o ^)/

    Thank you for your comments and advice.
    Thank you very much.
    It seemed that the order was wrong and I finally noticed it.
    I'm really thankful to you. m (_) m

  • Answer # 3

    The error message (?) that you provide is not an error but a warning message.
    You should have a commit.

  • Answer # 4

    What is the PATH of the directory where git init and git add -A were done?
    What is the rails directory PATH?

    Isn't it wrong to git init the directory? I feel that it will.

    That ’s correct,
    cd to the rails directory and git init, git add there.
    Isn't git init in the rails directory (up one)?