Git push Origin Master fatal: ' Origin ' does not appear to being a git repository fatal:could not read

Source: Internet
Author: User

Push in Xcode hasn't reacted in a long time, and then it stopped.

Son, I tried push in the terminal, and there was an error:



Git push Origin Master

Fatal: ' Origin ' does not appear to be a git repository

Fatal:could not read from remote repository.


Sure you have the correct access rights

and the repository exists.


The result check: Remotes Incredibly was I modified, the default is Origin now become TestFlight decisive will error.



The fix can:

git status

On Branch Master

Nothing-to-commit, working directory clean

Bogon:testflight ycf$ git push testFlight master

Counting objects:35, done.

Delta compression using up to 4 threads.

Compressing objects:100% (30/30), done.

Writing objects:100% (35/35), 10.76 KiB | 0 bytes/s, done.

Total (delta 5), reused 0 (Delta 0)

To Https://github.com/matiji66/testFlight.git

Aa09f31. a5cee9e Master, Master

Bogon:testflight ycf$

Attach the upload code to github using Xcode:

Start

First we create a new project, remember to tick create Git repository on:

This means that using source Control, Git repository is created by default in the project. After the project is built, you will see this information in the right sidebar stating that the source Control is enabled

If you are not using source Control, this is the case:

Now that we have the source control enabled in the project, we can use Git to manage the engineering version.

But what if we want to add GIT functionality to a project that does not have git enabled? We can use the command line to turn on this feature, create a new project, do not tick create Git repository on, we do not turn on source control, and then we manually create Git management, as shown in the following figure:

1 2 3 Yibantekiimac-3:usegit yiban$ Cd/users/yiban/documents/ios_dev/manualgitdemo Yibantekiimac-3:manualgitdemo YiBan$ Git init Initialized empty Git repository in/users/yiban/documents/ios_dev/manualgitdemo/.git/

Use

1 Git init

To initialize an empty git repository, now use the Ls-la command to view all files in the directory (including hidden files)

1 Total 16
1 2 3) 4 5

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.