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.
' origin/master '. Nothing to commit, working dire Ctory CleanGo to the file directory, look at the current git state, here you can see the hint on branch master, indicating that the master branch, the next line of the hint is that your branch and
This article records the contents of the remote branch and tag that I encountered while using Git.
View Remote Branch Delete remote branch and tag Delete no local branch for remote branch rename remote
When clone finishes the repository and switches to the development branch, a hint appears after using Git pull-r to pull and merge branches:$ git pull-rFrom Ssh://192.168.1.226:29418/ethank-serverBc86d14. B72fc88 Dev-and Origin/devThere is no tracking information for the current branch.Please specify which
1, create a new branch from an existing branch (such as from the Master branch), create a dev branchgit checkout-b Dev2, can be viewed once created, branch has switched to DevGit branch* DevMaster3, submit the branch to the remote
object, and to the same object as head. such as Git branch test, means to create a local test branch.
git checkout name: Switch to the destination branch, our default main branch is master.
One, view remote branch
Use the following git command to view all remote branches:
Git branch-r1
Two, pull remote branch and create local branch
Method One
Use the following command:
git
Original: Http://www.tech126.com/git-fetch-pull/Git to get the latest version from the remote branch to the local there are 2 commands:
1. Git fetch: the equivalent of getting the latest version from the remote to the local, does
Original: http://www.tech126.com/git-fetch-pull/
Git gets the latest version from the remote branch to the Local has such 2 commands:
1. Git fetch: the equivalent of getting the latest version from the remote to the local, does
tag
Delete local branch that does not exist for the corresponding remote branch
Renaming a remote branch
Push local tag to remote
Get remote Tag
viewing remote branchesWith the-a parameter to see the remote branch, the remote branch is shown in red (if
Label: style blog color ar use SP Div on 2014 Git obtains the latest version from a remote Branch to a local machine with the following two commands: 1. Git fetch : Equivalent to obtaining the latest version from the remote device to the local device, no automatic merge Gi
Reprint: http://blog.csdn.net/hudashi/article/details/7664457 There are 2 commands in git that get the latest version from the remote branch to the Local:1. git fetch: the equivalent of getting the latest version from remote to local, not automatically merge -P Master: origin
This article contains two parts:1, create a new branch (branch) 2, back to a historical version of the project (history versions)
GIT Create a Project branch (branch) can solve the following two questions 1, test, need to change the code to change, 2, to add new features to
Git: git branch -- set-upstream
When git creates a new branch locally and pushes it to the remote server, the following prompt will be reported if it is not processed again:
You asked me to pull without telling me which branch
Git gets the latest version from the remote branch to the Local has such 2 commands:1. Git fetch: the equivalent of getting the latest version from the remote to the local, does not automatically merge
Git fetch
Reprint: http://lishicongli.blog.163.com/blog/static/1468259020132125247302/The first thing to make clear is that the git operation revolves around 3 big steps (virtually all SCM ) 1. fetching data from Git (git clone) 2. Change the Code3. transfer the changes back to git(
commitNow use git status to view the workspace, which is clean, so you can safely create a branch to fix the bug[Email protected] Mingw32/c/gitskill (Dev)$ git statusOn Branch DevNothing-to-commit, working directory cleanFirst determine which branch to fix the bug on, assum
There are 2 commands in git that get the latest version from the remote branch to the local:1. git fetch: the equivalent of getting the latest version from remote to local, not automatically mergeGit fetch Origin MasterGit log-p
Summary: When you use GIT for project development, you need to communicate with the remote server. One of the most frequently used places is getting stored objects from a remote repository. We know that git pull equals the result of git fetch and git merge. So where is the o
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.