Git advanced tutorial
Today, I accidentally saw it was said that it was a Git getting started tutorial. After reading it, I learned a lot of new things and summarized and recorded what I learned. Otherwise, I always felt that something was missing.
The following figure illustrates the concept of a work directory, a ver
2-minute entry to git
Ordinary people: "lend me 1000 yuan ". Programmer: "Let's borrow 1024 yuan for a whole piece ".
Today is 1024, a holiday for our programmers. First of all, I wish you a happy holiday for programmers and programmers ~ Then, send out a holiday gift. That's right. It's just a two-minute entry to git. Of course, this is what I took the time to translate today. The original Article is here.
ArticleDirectory
1. Register a Google account
2. Create a new project (use git for Version Control)
Iv. Project Management
5. expand knowledge
Original article address: simple tutorial on git version control system on Google Code project code hosting website
As a famous online projectCodeWebsite hosting. Google Code currently support
the conflict, you can ignore this file or the file type extension file, after the point is ignored, The. gitignore file (hidden file) will be generated at the root of the GIT project, and it will be found in the directory where we just set the Ignore file, and of course you can edit the file directly.PostscriptUsing Git is nothing more than code hosting, the next chapter on vs integrated
create an empty git repository under which path, and creates a hidden. Git folder in the current directory. Don't change things in this folder, or you can easily mess up the Git library.3.1 Initializing the repositoryIv. Add the file 1, execute the command at the command line: Git status Displays the result:3.2 First
readme file"[master (root-commit) cb926e7] wrote a readme file 1 file changed, 2 insertions(+) create mode 100644 readme.txtA simple explanation of the git commit command, followed by the -m submission of the instructions, you can enter any content, of course, it is desirable to make sense, so that you can easily find changes in the history record.Too much trouble not to enter the -m "xxx" line? There are ways to do this, but it's strongly not recomm
"Description: The git commit command, followed by the -m instructions for this submission, is a description of the content of the submission of the changes, which makes it easy to find the content of the version update soon.git commitOnce the command executes successfully, it will tell you that 1 files were changed and 1 lines of content were inserted (Read.txt has 1 lines of content).Why does git need to a
Tags: site queue detail Initialize San add to exit a PHP codeHttps://mp.weixin.qq.com/s/WH_JXah47BhQyviuuPAunw Background In small sites, it's quite handy to deploy PHP directly with git, and your remote site and local repository have a version control, and it's easy to track down problems or rollback. Because in the small company to work, the original system is still using the traditional FTP upload deployment, deployment is too cumbersome, and not c
Find the best git starter tutorial you've seen today
http://lostechies.com/joshuaflanagan/2010/09/03/use-gitk-to-understand-git/
Paste some commands
1. Git add to add files to staged area.2. Git commit commits staged file, and there are several options that are important:-a
version control system.Git is free software distributed under the GPL.Sure enough, I domain back again.Git's version fallback is very fast because git has a pointer to the current version inside, and HEAD when you roll back the version, git just points to the head append GPL :Instead, point to add distributed :And then by the way, the workspace files are updated. So you HEAD can point to which version numb
commit (working directory clean)The whole world is finally quiet!Now, suppose you have not only changed the wrong thing, but also submitted it from staging area to the repository, what should I do? Do you remember the version fallback section? Can be rolled back to the previous version. However, this is conditional, that you have not yet pushed your local repository to remote. Remember Git is a distributed version control system? We'll talk about the
All the Cats "Submit Result:[clean_up 63540fe] Remove all the Cats 5 5 Deletions (-100644100644100644 octofamily/ 100644 octofamily/100644 red_octocat.txt22. Go back to the master branch:git checkout Master23. Merge Clean_up to master:git merge clean_upShow:Updating 3852b4d. Ec6888bfast-Forwardblue_octocat.txt|1-Octocat.txt|1-octofamily/baby_octocat.txt |1-octofamily/momma_octocat.txt |1-Red_octocat.txt|1-5Files changed,5Deletions (-) Delete Mode100644blue_octocat.txtdelete Mode100644octocat.t
Yes will see: You ' ve successfully authenticated, but GitHub does not provide shell access. This means that you have successfully connected to GitHub.The next thing we need to do is upload the local repository to GitHub, and then we'll have to set up username and email, because GitHub will record them each time it commits.
12
$ git config--global user"your name"$ git config--global us
information above, Git tells us that this merger is a "fast-forward mode", which is to direct master to the current commit of Dev, so the merging is very fast.Of course, not every merger can be fast-forward, and we'll merge other ways later.Once the merge is complete, you can safely delete the dev branch:$ git branch -d devDeleted branch dev (was fec145a).After deleting, view branch, only the master branch
Although has been using Git to do version management, has also used the GIT project deployment, but did not adhere to this habit, recently decided to learn, the following article is mainly about PHP implementation of the method of Git deployment tutorial, the article through the sample code introduced in very detailed,
Although has been using Git to do version management, has also used the GIT project deployment, but did not adhere to this habit, recently decided to learn, the following article is mainly about PHP implementation of the method of Git deployment tutorial, the article through the sample code introduced in very detailed,
software.git diffAs the name implies is to view difference, the format is the UNIX common diff format, you can see from the command output above, we added a "distributed" word in the first line.Know what changes to Readme.txt, and then submit it to the warehouse is much more assured that the submission of changes and submit a new file is the same two steps, the first step is git add :$ git add readme.txtTh
Detailed tutorials collected by the website are: (Super detailed)GitHub Tutorial Http://www.ihref.com/read-16514.htmlgit tutorial http://www.ihref.com/read-16369.htmlhttp://blog.csdn.net/vipzjyno1/article/details/22098621A. Git introductiondistributed : Git version control system is a distributed system , is used to sa
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.