Creating a new branch pointer You work on your website and do some commits. ![]() It's git's best guess at "where amd_qlp_tester is over there". To create a new branch and switch to it at the same time, you can run the git checkout command with the -b switch: git checkout -b iss53 Switched to a new branch 'iss53' This is shorthand for: git branch iss53 git checkout iss53 Figure 19. So, when you want to do all the configuration stuff (eventually), see the question (and answers) you linked-to.Īs for the name origin/amd_qlp_tester in the first place: that's actually a local entity (a name kept inside your repo), even though it's called a "remote branch". If you want to push more conveniently, you could do that with: git push originīut whether that does what you want, depends on whether you agree with "early git authors" that the original defaults are reasonable, or "later git authors" that the original defaults aren't reasonable. Adding the name of the "branch to push"- amd_qlp_tester-(1) shuts it up, and (2) pushes just that one branch. So now (depending on your version of git and whether you've configured things in detail), git may print a lot of warnings about defaults changing in the future. The issue with these is that people have changed their minds, over time, as to what is "reasonable". The URL is whatever you cloned from and the rest, if set or unset, are all "reasonable" defaults. For example, if the remote name is originand the new url is then the command will be: git remote set-url origin http://newserver/myproject. Execute: git remote set-url to change the remote.When you first cloned the repo-whenever that was-git set up default values for some of these. origin (push) originis the name (alias) of the remote repository.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |