Home  >  Article  >  Development Tools  >  Graphical explanation of how to use sublime's sublimeGit plug-in

Graphical explanation of how to use sublime's sublimeGit plug-in

藏色散人
藏色散人forward
2021-08-10 14:13:452989browse

The following tutorial column of sublime will introduce to you the sublime Text3 plug-in sublimeGit. I hope it will be helpful to friends in need!

I hope that as a note, only God knows what I wrote in the end

About how to use the sublimegit plug-in to push projects to github.
In fact, it has been written in great detail online. Please refer to https://sublimegit.readthedocs.io/en/latest/tutorial.html

I think anyone who can pass Level 4 should be able to understand it. If If your understanding of English is only limited to words starting with f...then I hope my notes can be helpful to you, 圷达.

You need to make some preparations before you start
1. You need to install sublimeGit through package control, this awesome plug-in.
2. Install git and resolve configuration issues.

Then the text starts here

Initialization library

Graphical explanation of how to use sublimes sublimeGit plug-in

##As shown in the picture, on the project you want to upload Enter and select git:init

Graphical explanation of how to use sublimes sublimeGit plug-in

# and then the storage path of the repository will appear at the bottom. If


Graphical explanation of how to use sublimes sublimeGit plug-in

appears later, the initialization is successful.

Status view

Graphical explanation of how to use sublimes sublimeGit plug-in

Enter status view

Graphical explanation of how to use sublimes sublimeGit plug-in

The above are some Information, then Untracked files are files that have not been added yet, and below are some shortcut keys.

Ignore files

Select the file and press

i to add it to .gitignore to ignore it, for example I Now add the file .zip

Graphical explanation of how to use sublimes sublimeGit plug-in

and confirm.

Graphical explanation of how to use sublimes sublimeGit plug-in

See it, forget it.

PS: If you have multiple files that need to be ignored, you can use
I (uppercase). I won’t go into details about the specific method.

Add files

You can choose to add them one by one: select the files you want to add and press

sif you want to add them all at once To add all the files, you can
ctrl shift s, and then it will get stuck...When this interface appears, it means it is complete.

Graphical explanation of how to use sublimes sublimeGit plug-in

PS: If you select a file and press

u, the addition will be cancelled. If you press U, the addition of all files will be cancelled. Add to.

commit

Press

s to enter commit,

Graphical explanation of how to use sublimes sublimeGit plug-in ##You can enter information on the first line, such as


Graphical explanation of how to use sublimes sublimeGit plug-in and then close this window and return to the

git:status

interface

Graphical explanation of how to use sublimes sublimeGit plug-in Show completed.

Upload to github

The operations just now were all done on the local library, so how could you, the handsome guy, be willing not to share it with the world?

Come, add a remote


Graphical explanation of how to use sublimes sublimeGit plug-inEnter the name, the default is

origin

Graphical explanation of how to use sublimes sublimeGit plug-in

enter

later

Graphical explanation of how to use sublimes sublimeGit plug-inwhat? What url? You didn't say that?

Ahem. . . Sorry, before going back to adding remote, we need to have a repository on github. I won’t go into how to create it. In short, now we have a library on github. I want to name it whatever I want, but after thinking about it, I forget it.

Graphical explanation of how to use sublimes sublimeGit plug-in

Then copy it

Graphical explanation of how to use sublimes sublimeGit plug-in

ssh and HTTPSCopy whatever you want It should be possible to add one to the url just now.

The last step

Graphical explanation of how to use sublimes sublimeGit plug-in

Selectgit:push, and then there will be some prompts, knock your enter, don’t pay too much attention first. For the first time, you may be asked to log in to your github or something like

Graphical explanation of how to use sublimes sublimeGit plug-in

. When this happens, we will habitually think that it should be successful.

Yes, it was indeed successful.

Graphical explanation of how to use sublimes sublimeGit plug-in

The above content is just notes, just to provide a reference (knock on the blackboard), git has many functions, I will slowly collapse and write slowly when I have the opportunity in the future.

The above is the detailed content of Graphical explanation of how to use sublime's sublimeGit plug-in. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:segmentfault.com. If there is any infringement, please contact admin@php.cn delete