the tutorial steps while you're at the tutorial. Step 1. Create a library
A library is often used to organize a separate project. Libraries can contain: folders, files, pictures, videos, spreadsheets, and datasets-anything you need for your project. We recommend that you include a Readme file in your project or a file that introduces the approximate information about your project. GitHub for convenience, add one at the same time you create your new l
).
Tip: Open this guide in a separate Browse window or tab so that you can see it when you are finished with the steps in this tutorial.
Step 1. Create a repositoryA repository is often used to organize a separate project. Repositories can contain folders and files, pictures, videos, spreadsheets, and data collections-anything that you project. We recommend that you include a Readme (description file) or a file that contains information
create an empty directory:Bogon:documents zuxingyu$ mkdir gitworkspacebogon:documents Zuxingyu$ cd gitworkspace/Bogon: Gitworkspace Zuxingyu$ pwd/users/zuxingyu/documents/gitworkspaceThis folder is then managed by the git init command into a git repository.Bogon:gitworkspace zuxingyu$ in/users/zuxingyu/documents/gitworkspace/.git/You can view the current directory structure with the ls-a commandBogon:gitworkspace zuxingyu$ ls-a ... . Git. Git is a hidden directory. The files inside are not m
nearest place. The same is true of Git, where you can "save a snapshot" whenever you feel that the file has been modified to a certain extent, and this snapshot is called a commit in Git. Once you've changed the file, or deleted the file, you can recover from a recent commit, and then go on working instead of losing all of your work for months.
Now, let's recap how several versions of the Readme.txt file have been submitted to the GIT repository:
Version 1:wrote a
history records, and submit logs locally.
Stage (INDEX), the temporary storage area, is essentially a file, that is.git/index
GIT also has three types of common objects (more than three). It is also important to understand these three types of objects. They are:
Blob, used to represent a file
Tree, used to represent a directory, indexed to several files or subdirectories
Commit, used to indicate a Commit (COMMIT)
All objects are saved as files.git/objectsDirectory, an object and a file.
by initializing the local repository, with the following command:git init (初始化文件为git可以操作的文件)
1
1
The point here is that when the above command is completed, it is equivalent to creating a hidden one under your test folder. git files2.the second .....The second step, the local create a Readme file, right-click Notepad Open, which wrote about the changes in this commit, and I am here as a test, so it was written inside this
Internet access rights. You don't need to know how to encode, use the command line or install Git (based on version control software GitHub).
Tips: Open this guide in a separate browser window (or tab) so that you can see it as you complete the steps in this tutorial.
Step 1: Create a repositorya Library typically used to host a single project. a repository can contain folders and files, images, videos, spreadsheets, and datasets-anything your project requires. we recommend i
warehouse in the working directory
To start using Git for an existing project, just go to the directory where the project is located and execute:
1
$ git init
After initialization, a directory named. Git appears in the current directory, and all of the data and resources that git needs are stored in this directory. At the moment, however, all of the files and directories are initialized in accordance with the existing structural framework, but we have not started to tr
every subdirectory has a nasty. svn. This needs to be considered when you need to modify file conflicts and other issues. Must be a simple file. Second, installation
Before installing, git, like SVN, needs to create a server that can create its own version Management Server. For individuals and small teams, it might be more appropriate to use a managed server. Common to have GitHub and bitbucket. GitHub has no personal free storage, and the code
JSON5 mode PHP mode CSS mode JSX mode to , there will be more built-in patterns migrating to the Zed application package, but the task is not light, so it will take some time. If you open the/default.json file under your configuration project, you can see a packages key:
code is as follows
copy code
packages: [ nbsp; "Gh:zedapp/javascript-mode", "Gh:zedapp/json-mode", "Gh:zedapp/json5-mode", "Gh:zedapp/php-mode", "gh:zedapp/ Css-mode ", " Gh:ze
to implementation, if there is an ill-conceived situation, can be well remedied at this stage.
In practice, we find that even if only the original author is doing code review, it can still improve the quality of the code.
9. Recording notes in the implementation can improve the problem discovery rate
A member should make a handy record when encoding, including commenting in the code, or recording a simple personal document, which has several benefits:
(1) Avoid omission. Any issues that wil
to use Git by creating a Readme file as an example.5) There are many ways to create files, such as Touch Readme and VI Readme or Direct VI Readme. The simplest is the echo "content" > Readme. The following shows how the stream creates a file
File States overviewEvery file in your working directory are mainly in one of 2 states:1. tracked:all files that were committed to the last snapshot in Git repository is in state tracked. They can be one of the following states:1.1 Unmodified:files you checkout from repository and Haven ' t edited anything yet.1.2 Modified: Files Checkout from repository and has ever edited something since your last commit.1.3 Staged:files you ' ve modified and added to staging area.2. untracked:all files that w
and reStructuredText. ReStructuredText is a bit difficult to use, but more powerful. I recommend that you check both of them and decide which one you want to use.
Plain text version control
As a programmer, we live in a world of plain text. Our document tools should not be exceptional. We want to convert plain text into beautiful HTML tools. We also have some of the best tools to track file changes. Why do we give up using these tools when writing documents? This set of workflows is powerful an
Git learning notes integrated with IntelliJ idea. Git learning notes (based on GitHub) 1. Install and configure git download address: http://git-scm.com/downloads git brief instructions: http://rogerdudl er.github.io/git-guide/index.zh.html GitHub Official instructions for use: https://help.github.com/articles/set-up-git default installation configuration 1) First you have to tell Git that you The name of git config--global user.name "Your name Here" 2) associated email address: git config--gl
init, Git will create a "master" branch for you by default.
If you want to manually create a branch and switch to another branch. Run git branch (branchname.
$ Git branch testing
$ Git branch * master
Testing
Now we can see that there is a new branch testing.
When you create a new branch after the last update is submitted in this way, if you submit an update later, and then switch to the "testing" branch, git restores your working directory to the way you created the branch.
Next we will demons
structure of the project. am] (Makefile. the am number and storage location are related to the source code directory structure), Makefile. am mainly writes the compilation target and its source code composition.(7) call automake to convert each Makefile. am is converted to Makefile. in, and generate a series of files that meet the GNU coding specifications (the missing files are automatically added with the-a option, but several still need to be added by themselves, run touch news
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.