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.
cannot change its data locally. At the same time,Git builds a local master branch of your own , which points to a copy you've just uploaded from remote to your local server. As you continue to change files,git add, git commit,Master 's point will automatically move, you can also move through the merge(Fast forward) the point of Master. $
/master points to an remote branch (from that branch our clone data to local), But you cannot change its data locally.At the same time, Git builds a local master branch of your own, which points to a copy you've just uploaded from remote to your local server. As you continue to change the file, git add, git commit,master point will automatically move, you can als
First, see who wrote the line of code, and in which commit:git blame file_namegit blame-l 58,100 Keyboardactivity.javaIts display format is:Commit ID | Code Submission Author | Submission Time | Number of lines in the file that the code is in | Actual codeThis is similar to the following:650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/8C/24/wKioL1hjeVeyc1XSAAIDgRtPpIE882.png "style=" width : 600px;height:476px; "title=" Qq20161228163503.png "width=" "height=" 476 "border=" 0 "hspace="
Git status Faq:when I issue the "Git status" command, I see the following "Your branch is ahead or origin/master ..." git Message# on Branch master# Your branch are ahead of ' Origin/master ' by 5 commits. #nothing to commits (working directory clean)What does this "Your bra
There is a git branch–a used to view all the branches, both local and remote, in the commands you often use. But for a long time you will find that some of the branches have been deleted in the remote, but you can still see the deleted branches in your local area. You can use the command, GIT remote show origin to see
1, first of all we recall two commands#git Remote Add origin repository link#git Push-u Origin MasterLet's take a look at this command, git is a git command, push is the download,-u should use the account to verify that Maser is t
When working in a file, we often want to know who made certain changes last; We can use the "see details" of the last modification of each line in git blame a file. In this lesson, we show and example of using to see who made the last change on git blame a line in a file, and then we use th E output of-use-in other tools like-to-see the full context of the change
1. Fatal: ' Origin ' does not appear to be a git repositoryFatal:could not read from remote repository.Please make sure the correct access rights and the repository exists.Translation: fatal: "origin" is not a git repositoryFatal: Unable to read remote repositoryMake sure you have the right access rights and store inve
Today, an error occurred while using git to push local code to the remote server:
whl@whl-desktop:/work2/recvdsrc$ git push Origin master klha@klha.net ' s password:counting objects:44, done.
Compressing objects:100% (24/24), done.
Writing objects:100% (25/25), 13.10 KiB, done. Total (delta), reused 0 (Delta 0) remote:error:refusing to update checked out Branch:
1, from the Remote Repository clone project to the local, in addition to create a current remote head pointer to the branch, but also copy the remote Repository branch to the local, can be through git branch-a or git Branch-r to view all branch that are remotely copied to the local. The default name is: Origin/branchname2. Locally you can checkout these remote
============================================Follow Liu Cofeng tutorial beginner git found a very strange problem, the back of the original found to be so, a little tease.============================================Http://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/ 0013752340242354807e192f02a44359908df8a5643103a000#0http://blog.csdn.net/fffy2366/article/details/42437105This step is an error.
There is a problem with submitting a local branch to the remote library for Ubuntu:Solution: Execute the following command:git remote add origin [email protected]:yourusername/test. GitYourUserName: Name of the GitHub registryTest: for Remote library name:The commands to be executed are:git remote add origin [email protected]:fwl8888/f01. gitExecute the push submission againThe Push Code branch appears: fat
to copy its contents into the GitHub Web page of my SSH key and confirm the submission.In this way, the account on GitHub has the key to your local computer, which allows you to freely access and upload data.Next experiment how to add a remote libraryGo to GitHub pageBack to the local warehouse,$ git Remote add origin [email protected]:wly95/testing.gitHere origin
Reference articlesMake terminal show Git branch on Ubuntu (OH-MY-ZSH)Installation and basic configuration of oh-my-zshInstall oh-my-zsh under UbuntuObjectiveBefore learning Laravel, often to switch git branch, but the existing shell does not show the branch state is always used git
In the morning test script, accidentally in this article "git–setting up a remote repository and doing a initial push" see a fun thing about Git, recorded here.Add the following in the ~/.BASHRC, as prompted by the article, to let the prompt display the name of the current Git branch. I changed the format of the prompt according to my own habits.__mikespook_ps1 (
1, install Zshsudo apt-get install zsh2, cloning the projectgit clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh3. Create a new. zshrc fileCP ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.ZSHRC4. Back up the ~/.ZSHRC file (plan for later)CP ~/.ZSHRC ~/.zshrc.orig5, change the system default bash environmentChsh-s/bin/zsh6, exit the current user, re-login (reboot only for the root user)RebootThe Last post-installation effect.Refer to: Http
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.