Home > Development Tools > dreamweaver > Teach you step by step how to bind GitHub repository in Dreamweaver

Teach you step by step how to bind GitHub repository in Dreamweaver

青灯夜游
Release: 2022-12-01 20:55:34
forward
3132 people have browsed it

How to bind GitHub repository in Dreamweaver? The following article will give you a detailed introduction to the method of binding GitHub warehouse in dreamweaver. I hope it will be helpful to everyone.

Teach you step by step how to bind GitHub repository in Dreamweaver

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 (unique).

What are the characteristics of Git? To put it simply: high-end and classy!

Then 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 am afraid that I cannot recover it in the future? There is a way, first "save the current file as..." into a new Word file, and then continue to change it to a certain extent. , then "Save as..." a new file, keep changing like this, and finally your Word document becomes like this:

Teach you step by step how to bind GitHub repository in Dreamweaver

After a week, you want to get it back The deleted text, but I can’t remember which file it was saved in before deletion, so 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 then Delete the other ones, but you are afraid that they will be used someday, so you dare not delete them. It’s 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 U Give it to her on the disk (you may also send a copy to her via email), 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 to do after sending it to her. What changes did you make during the period of 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 every time Changes to files can also be edited collaboratively by colleagues, so you don’t have to manage a bunch of similar files yourself, and you don’t need to pass files around. If you want to check a certain change, you only need to take a look in the software. Wouldn't it be 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. [Related recommendations: "dreamweaver tutorial"]

Teach you step by step how to bind GitHub repository in Dreamweaver

Teach you step by step how to bind GitHub repository in Dreamweaver

## Check here to associate the Github warehouse with the site, and check below Initialized as a git repository.


Teach you step by step how to bind GitHub repository in Dreamweaver

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. change.

Teach you step by step how to bind GitHub repository in Dreamweaver

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.

Teach you step by step how to bind GitHub repository in Dreamweaver

#But we haven’t connected to the github repository yet, so we need to establish a remote connection.

Teach you step by step how to bind GitHub repository in Dreamweaver

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.

Teach you step by step how to bind GitHub repository in Dreamweaver

Fill it in.

Teach you step by step how to bind GitHub repository in Dreamweaver

Successful connection means you are one step closer to success!

Teach you step by step how to bind GitHub repository in Dreamweaver

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.

Teach you step by step how to bind GitHub repository in Dreamweaver

Teach you step by step how to bind GitHub repository in Dreamweaver

After the submission is completed, you will find that the upload button has a small circle ①

Teach you step by step how to bind GitHub repository in Dreamweaver

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.

Teach you step by step how to bind GitHub repository in Dreamweaver

Click Confirm and you’re done!

For more programming-related knowledge, please visit: Programming Teaching! !

The above is the detailed content of Teach you step by step how to bind GitHub repository in Dreamweaver. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template