This article will show you how to bind Dreamweaver to a GitHub warehouse. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to everyone.
Related recommendations: "dreamweaver tutorial"
Git is a Free, open source, distributed version control system for agile and efficient handling of any project, small or large.
Quoting teacher Liao Xuefeng: "
What is Git?
Git is currently the most advanced distributed version control system in the world (no one).
What is Git? Features? To put it simply: high-end and classy!
So what is a version control system?
If you have ever written a long article using Microsoft Word, you must have had this experience:
What should I do if I want to delete a paragraph, but I’m afraid that I won’t be able to recover it in the future? There is a way, first “save the current file as...” a new Word file, and then change it to a certain extent, and then " Save as..." a new file, keep changing like this, and finally your Word document becomes like this:
A week later, you want to retrieve the deleted text, but you can’t remember the time before deletion. Which file is it saved in? I have to find it one by one, which is really troublesome.
Looking at a bunch of messy files, I want to keep the latest one and delete the others, but I am afraid that it will be used someday. But I still dare not delete it, which is really frustrating.
What’s even worse is that some parts need help from your financial colleagues to fill in, so you copy the file to a USB flash drive and give it to her (you may also send a copy by email) Give it to her), and then you continue to modify the Word file. A day later, your colleague will send the Word file to you. At this time, you must think about what changes you made between sending it to her and receiving her file. , it is really difficult to merge your changes with hers.
So you think, if there is a software, it can not only help me automatically record each file change, but also allow colleagues to collaborate on editing, so You don’t have to manage a bunch of similar files yourself, and you don’t need to transfer files around. If you want to check a certain change, you only need to take a look at it in the software. Isn’t it very convenient?”
Yes, This is the benefit of Git. Okay, no more nonsense, let’s get straight to the point.
First of all, we open Dreamweaver. Every time we have a website project, we need to create a new site. This is also the case when we bind the github warehouse for the first time.
Check here to associate the Github warehouse with the site, and check below to initialize it as a git warehouse.
Okay, we see that there is an additional .gitgnore file in the folder, and the file is green, indicating that git has detected that this is a new file and new changes.
At this time, there is an additional git option in the task box below the code editing area. Here are the tasks for submitting the temporary library, Pull (upload), and push (download). place. These files appear untracked because they are not committed to the staging repository.
#But we haven’t connected to the github repository yet, so we need to establish a remote connection.
Now we open the repository created by git and get the remote link. Reminder: Generally choose HTTP link because SSH support is not yet stable.
Fill it in.
Successful connection means you are one step closer to success!
At this time we check the file that needs to be uploaded and click the first button to submit it to the temporary storage area.
After the submission is completed, you will find that the upload button has a small circle ①
After clicking, a push window will open. Then check whether the branch is consistent with your own warehouse name, otherwise git will create a new branch. The warehouse defaults to main, and the new one created is usually master.
Click Confirm and you’re done!
For more programming-related knowledge, please visit: Introduction to Programming! !
The above is the detailed content of How to bind Dreamweaver to GitHub repository. For more information, please follow other related articles on the PHP Chinese website!