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
To initialize an empty git repository, now use the Ls-la command to view all files in the directory (including hidden files)